Generics: Digging Deep

Digging deep into generics this week…

Digging Into Generics


5 Responses to “Generics: Digging Deep”

cbm Says:

didn’t know what you were talking about, but guessed it was a Java thing…

I’m considering a companion website called “Stuff Explained”. Sorta like ‘The DaVinci Code’ meets the Heads First series. A celebration of the hits and thorough explanation of the flops. (Scholars are still deciphering the Ahmadinejad comic.)

However, Eric doesn’t need more hits or attention :-)

Mike

ps. yes, i need a gravatar… one resolution for 2008

anonymous Says:

rotfl!!!

Pragma Says:

Stuff like this is exactly why I keep coming back here.

That said, I couldn’t agree more. I really wish Java was blessed with a generics/templating implementation more along the lines of what D has. Instead, what you do get to work with is along the lines of a highly-specialized syntax sugar that does little more than get rid of (most) casts for generic collections.

I can’t tell you how many times I’ve been bitten by the problems that type Erasure causes.

Leave a Reply