Java Gets Templates
lastberserker writes "Call them all you want - generics, parametrized types, thingamagic mumbojumbo - but (tada!) Java gets templates in 1.5 release. Nice landing after 5+ years of dancing around a bush. Competition is good, pardon my pun."
Y'know, just as I'm starting to understand why developers, corporations, every man under the sun thinks Java is a good thing ... they go and do this.
How're you supposed to get people to maintain 1.5 code then? D'you know how many C++ coders don't understand templates? Even to use them it's a scarily small number.
There's very little you can do with a template that you can't do with a well designed virtual base class (whatever they're called in Java). And what you can do boils down to performance, which sucks under Java anyway.
Don't get it. Should've let it be.
Dave
I write a blog now, you should be afraid.
- Metaclasses
- Higher Order Functions
- Multiple Inheritance
- Multimethods
- Integration of primitive types and classes
- Makros
- A GUI library that is not dog slow (Swing) or bothers you with memory management (SWT)
- A Free implementation. Maybe a standard would help, too.
Feel free to complete...Programming can be fun again. Film at 11.