Online Books:
java.net on MarkMail:
Search |
||
Which proposed Project Coin language change most interests you?Something else (please comment)
8% (27 votes)
Multi-exception catch
49% (158 votes)
More concise calls to constructors with type parameters
15% (48 votes)
Call methods with exotic names
3% (9 votes)
Bracket notation for collections
26% (83 votes)
Total votes: 325
»
|
||
|
|
simple thing
// rename method to taste. public static Iterable $(Iterable iter) { return iter == null ? Collections.EMPTY_LIST : iter; } // later. List list = null; for(String s : $(list)) { }simple thing
complicated thing
Hex literals are in JDK 5
Extension methods as in C# 3.5
Don't get it
Multi-line strings
lost the "try" keyword
lose "try" keyword
Null Handling
Mutli exception catch FTW
Mutli exception catch FTW
Mutli exception catch FTW
Null-safe operators
Suggest supporting arrays as objects.
int[] ints = {5, 4, 3, 2, 1}; System.out.println("ints= "+ints); ints.sort(); System.out.println("after sort() ints= "+ints); ints = ints.add(6); System.out.println("after add(6) ints= "+ints);Prints ints= [5, 4, 3, 2, 1] after sort() ints= [1, 2, 3, 4, 5] after add(6) ints= [1, 2, 3, 4, 5, 6] I have the code changes required on my wiki. ;)Suggest supporting arrays as objects.
Operator overloading?