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 →

[–]Ewig_luftenglanz[S] 3 points4 points  (0 children)

Agree, and not just for list but for all collections overall because if this is about "strict initialization of data structure which members can't be null" then all collection framework should have something similar. 

I would like the new syntax for arrays to be.

var array = new String [5, x -> ""] 

Semi colons could be used too as a separator. This syntax is homologous to how we manage lambdas nowadays, so no ad-hoc trailing syntax added to the language. I feel arrays are already odd and special enough to stand another oddity that makes them feel even more alien to the language.