Re: Why Generics?



David Blickstein wrote:

I agree with you, but only in the "possible" sense of "needed", not in the "desirable" sense. In that sense of the word, your claim is already proven by the fact that the new enumerations are (in my understanding) just a little syntactic sugar provided by the javac compiler. So clearly type safe enums were always possible.

There is actually one part of enums that was not possible before and that was the ability to use them as cases in a switch statement.
--
Dale King
.