Re: Why Generics?




"Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4279df8c$1$38044$bed64819@xxxxxxxxxxxxxxxxxxxx
> Eric Sosman wrote:
>
>> It was the C++ weenies, definitely. You're entirely
>> correct: The C++ saboteurs have contaminated Java with
>> generics simply and only to make the language unattractive
>> and cause its ultimate demise. The Java people have been
>> suckered into kissing the Bjarne Stone.
>
> Funny thing, I know you intended this as sarcasm, but I agree with it as
> written. Well. not quite literally -- I don't suppose there's any
> conspiracy -- but I do think that generics have been introduced out of
> ill-considered, or unconsidered, C++-envy.

Why C++, in particular? The next version of C# has generics, and the
current one has auto-boxing, variable-length argument lists, for-loops over
collections, etc. Given that Java competes for mindshare with .NET, I think
competition with C# is a more likely motive for the 1.5 changes.


.



Relevant Pages

  • Re: Java Generics: limitations?
    ... cannot go around and do something similar to what I've said, then Java ... generics cannot be called generics, ... have pointed out, the HasXY interface is not necessary, and could be ... public int getX(); ...
    (comp.lang.java.programmer)
  • Re: Getter & Setter
    ... ich zumBbeispiel auch nicht sicher bin was Row Types ... C++ und Ada machen das ebenfalls nicht (wobei Ada nur benannte Generics ... Performanz in Java hauptsächlich in den Methodenaufrufen zu finden ...
    (de.comp.lang.java)
  • Re: Getter & Setter
    ... ich zum bEispiel auch nicht sicher bin was Row Types ... C++ und Ada machen das ebenfalls nicht (wobei Ada nur benannte Generics ... su meinst eine starke, statische Typisierung mit einigen ... Performanz in Java hauptsächlich in den Methodenaufrufen zu finden ...
    (de.comp.lang.java)
  • Re: unsafe or unchecked operations
    ... Generics are by far the most complicated thing I have encountered in ... The Java Glossaryhttp://mindprod.com ... same warning ... But how does casting happen when 'filters!= null'? ...
    (comp.lang.java.help)
  • Re: why doesnt ruby have generics?
    ... Why would you bind to a type in a language that doesn't really care ... cannot have generics in a language whose variables are typeless as ... Listin Java.) ... In Ruby you can do neither: you cannot cast because variables are ...
    (comp.lang.ruby)