OT: What's wrong with Java-the-language
Julio César Carrascal Urquijo
jcarrascal at gmail.com
Sun Oct 21 08:43:46 PDT 2007
Sean Kelly wrote:
> Technically, the auto-boxing issue is related to the implementation
> rather than the language design (unless that behavior is actually in the
> spec). Generics, however, are utter garbage. They are useful as a
> convenience tool for not manually casting and that's about it. Opinions
> about MS aside, I think C# is a better designed language than Java.
>
>
> Sean
Yes, it is in the "The Java Language Specification, Third Edition" at least:
If the value p being boxed is true, false, a byte, a char in the range
\u0000 to \u007f, or an int or short number between -128 and 127, then
let r1 and r2 be the results of any two boxing conversions of p. It is
always the case that r1 == r2.
http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#5.1.7
--
Julio César Carrascal Urquijo
http://www.artelogico.com/
More information about the Digitalmars-d
mailing list