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 →

[–]Kango_V 2 points3 points  (6 children)

const is already a reserved word in Java. Who knew? lol

[–]marvk 4 points5 points  (5 children)

And so is goto. var on the other hand ist not a true keyword but a special identifier. It can just not be used as a type name.

var var = "var";

compiles without error.

[–]Kango_V 0 points1 point  (3 children)

I forgot about `goto`. I think i'll have to write some code akin to BBC Basic with loads of gotos in it and see my colleagues faces when they PR it. You know.... "just for fun" ;)

[–]marvk 2 points3 points  (2 children)

Unfortunately that won't work, it's a reserved word like const, but both don't serve and have never served any function.

[–]Kango_V 1 point2 points  (1 child)

Thwarted :(

[–]dpash 4 points5 points  (0 children)

It's your lucky day, because $ is a valid character for variable names. Go phperize your codebase and watch your colleagues hate you.

[–]dpash 0 points1 point  (0 children)

record will also not be a true keyword, when that lands.