We've expanded our news coverage and improved our search!
for the latest or search for all things across O'Reilly!
Readable Java 1.5
Cholesterol - WTF? - I want Smalltalk
Response to: Cholesterol - WTF? - I want Smalltalk
You will if you want your code to run fast.
Really, folks, the issue is about the Java 1.5
syntax proposal -- all this stuff about what
your favorite language is or what else you think
should be done to Java is juvenile, egocentric,
and rude to the author. There are a thousand
forums where you can post your thoughts on
The variance syntax looks clearly superior.
The type syntax looks nice, as long as the
parser can handle it, but I doubt that you
could ever convince Sun to switch from the
angle bracket syntax used in C++, Pizza, etc.
The eachof syntax is rather problematic,
looking like an operator rather than a control
structure. It makes plenty of sense in a
language that has full-on iterators, like CLU or
Ruby, but for Java it's out of place. Which to
me is an argument for leaving the foreach
operator out of Java 1.5 altogether, and coming
up with a proposal for a proper iterator syntax.
The foreach operator is non-orthogonal wart that
violates basic language design principles.