|
|
|
|
|
by qsort
546 days ago
|
|
> The problem with Java since Java 8 I agree with the sentiment, but I'd move up to a version with type inference at least. I have nothing against static types and in fact in a vacuum I prefer them, but the particular brand of OO and "weak" generics that Java and C# have feels like filling forms in triplicate. "var" alleviates that significantly. |
|
Conversely, in Java you often use the diamond operator like in:
(Half of which, again, is code completion in your IDE.)That doesn’t work with “var”. You’d have to write:
while losing the ability to constrain your variable to a narrower type.The loss of directly seeing the type information in statements of the form
should meet a very high bar, IMO.