Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by yummyfajitas on Friday March 30, 2012 @11:05AM
(#3776251)
When they are used for more than 1 method implementations, well ... they shouldn't be inner classes.
Why not? Very often, a class will have some data members which are pretty much meaningless elsewhere. Why should the class used to represent that data be exposed elsewhere?
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho...
by EdiX on Friday March 30, 2012 @10:00AM
(#3775936)
They are there, they have been there for over ten years, much code exists that needs them to be there. You can't take them out of the language.
More syntax sugar for them would be good, adding first class functions IMHO isn't good.
When they are used for more than 1 method implementations, well ... they shouldn't be inner classes.
They just exist to fill the gap of having no closures. I say this as a long time and affectionate java user but project lambda in JDK8 is long overdue.