begin  quoting James G. Sack (jim) as of Tue, May 23, 2006 at 02:02:05PM -0700:
[snip]
> I came across a wiki (http://www.cakoose.com/wiki/) that seems to have
> some readable ramblings, including one called "Type erasure is not evil"
> 
> Of course there are many hits on "type erasure", and another one nearby
> on the google list is "What's Wrong With Java: Type Erasure"
> http://www.safalra.com/programming/java/wrongerasure/
> 
> It seems, though, that both articles criticize Java more so than type
> erasure, per se.

They both basically rag on Java's generics.  IT shouldn't be "What's
wrong with Java", but "What's wrong with Java's Generics".

***

I don't think Sun could win this one, no matter what.

If they didn't do generics, people would rag on 'em. People were, in
fact, giving 'em quite a hard time.

As they did do generics, but it's an add-on, people are ragging on 'em.
It wasn't something they designed into the language from the start, so
it's going to be a little awkward regardless (we don't want a perl-style
rewrite of the language spec).

The one guy's solution -- add some bizarre syntax -- would have folks
ragging on Sun even more for introducing more opaque notation.

(Personally, I don't mind the runtime exceptions for when people do
stupid things with arrays.  Catch the most _common_ errors with
static checks, and leave the rest for runtime...  I've never yet
encountered the example cited regarding arrays. Am I just lucky?)

-- 
_ |\_
 \|

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to