New Java features
Catching up on my reading this morning and ran across this on slashdot.
- Generics (I still think that's a horrible term)
- Autoboxing
- Enhanced for-loops
- Enumerations
- Static Imports
Boxing will be incredibly handy.. I use that all the time (as I imagine most Java programmers do).. Generics (yucky term) will save me headaches from necessary-bad-design to sidestep the lack of this feature in current versions of Java. Big thumbs up for static imports as well!
This will be great.. I can hardly wait!
Comments
these all look pretty cool, but the 'enhanced for loop' syntax looks kind of lame... i mean if it's a 'foreach' loop, you might as well call it 'foreach' instead of overloading 'for' with some weird syntax.
Posted by: garrett | February 8, 2003 01:49 PM
hm, yah, I'm not sure what to think of that one.. It will simplify iteration.. but the syntax doesn't appear very intuitive which may make it counterproductive.
Posted by: kasia | February 8, 2003 03:18 PM
none of the proposed changes, are at all necessary, if these things are problems for programmers maybe they should rethink how they are writing their code in the first place or write convenience methods.
Most of it sounds like it was suggested by C programmers or other.
Posted by: Samwise | February 13, 2003 05:51 AM