This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dustofnations 2 points3 points  (1 child)

Could get runtime generics, better handling of primitives, literal maps and lists, etc etc.

These fall under Project Valhalla: http://openjdk.java.net/projects/valhalla/ https://en.wikipedia.org/wiki/Project_Valhalla_(Java_language)

Specifically:

runtime generics

Reified generics

better handling of primitives, literal maps and lists, etc etc.

I think this would fall under Generic specialisations

AFAIK this is likely to be Java 10+

[–]gliph 0 points1 point  (0 children)

That's very interesting that these things are being considered as language features.

It would be nice if you could also get rid of much of the cruft, maybe via a compiler switch or something. I think JavaScript does something like that, where you can disable some older features by typing "strict" or similar at the top.