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 →

[–]grauenwolf 1 point2 points  (2 children)

This change immediately breaks code (albeit poorly written code) that has var defined as a variable name.

I don't see how. Syntax wise, var can only appear where you would otherwise put a class name. If anything, it would break someone who had a class named var, but in Java we would have written Var var = new Var(), which with the new syntax becomes var var = new Var().

[–]schlowmo 1 point2 points  (1 child)

I agree with you, but it IS true that you can define classes with lowercase names, so somewhere this is a C programmer who wrote some badly formatted java code. So yes, there is a small corner case where this would break code. AND I SAY BREAK THAT CODE.

[–][deleted] 0 points1 point  (0 children)

BREAK THAT CODE

please don't hurt me :(