Comment by array_key_first
2 months ago
var x: int is much easier for a machine to parse and let's you do some neat things.
For example, in C++ because the type must come first, you have to use "auto" - this isn't necessary in langs who put the type after the variable name.
It also helps avoid ambiguous parsing, because int x; conflicts with some other language constructs.
No comments yet
Contribute on Hacker News ↗