2 ms·
> Quality-of-life features that aren’t too hard to add, and don’t meaningfully change a language in its absence. Often syntactic sugar This is basically the pr
by nayuki 4y ago
> Quality-of-life features that aren’t too hard to add, and don’t meaningfully change a language in its absence. Often syntactic sugar
This is basically the premise of Project Coin, released in Java SE 7: https://openjdk.org/projects/coin/ https://openjdk.org/projects/coin/
The goal of Project Coin is to determine what set of small language changes should be added to JDK 7. That list is:
* Strings in switch
* Binary integral literals and underscores in numeric literals
* Multi-catch and more precise rethrow
* Improved type inference for generic instance creation (diamond)
* try-with-resources statement
* Simplified varargs method invocation