I looked in the same place, in the link you quoted, and there were so many different definitions for "first-class object" that I think "first-class object" could mean anything. Sounds a bad term to me.I looked up the term "first-class object" to make sure what you mean.
Originally posted by Campbell Ritchie:
I looked in the same place, in the link you quoted, and there were so many different definitions for "first-class object" that I think "first-class object" could mean anything. Sounds a bad term to me.
There is no emoticon for what I am feeling!
It is said that Arrays & Strings are first class objects u dont need to use new operator with them.
Originally posted by megha ghanekar:
Can u [sic] plz [sic] tell me the exact meaning of first class objects & why they r [sic] not supported by java?
Originally posted by Jeff Albertson:
Wait a minute, isn't it you who should be defining "first class object" for us? It's not a term used in Java, in fact I just got Adobe Acrobat to scan the JLS (Java Language Specification) and the phrase "first class object" does not occur once in it. What does that tell you? Imagine going into a music store and looking at the pianos, then asking the salesman, "how much horsepower has this one got?"
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Tony Morris:
It is not used in Java literature because if it were, it would inadvertantly highlight some of the defects of the language which violates the objectives of the author(s) of Java literature. The term "first class object" has been around for a long time and is used quite heavily in texts related to programming language theory that attempt to solve a problem in such a way as to not be biased by ulterior motives such as marketing pressures, etc. i.e. attaining some level of correctness is a true first class objective .
One need not look far to find a functional language which is defined by having "first class functions" (no, C is not a functional language despite what the teacher may have said).
The JLS is not authoritative.
Onion rings are vegetable donuts. Taste this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|