Hacker News new | ask | show | jobs
by Joker_vD 1317 days ago
The ":" and "=>" are almost definitely superfluous, parsing "a: i32, b: 32" and "a, b: i32, c: i64" is no more difficult as parsing "a i32, b i32" and "a, b i32, c i64".

The same is true for colons in Python: they're not really necessary but provide slighlty better readability plus syntax highlighters can get away with using regexes, I guess.

1 comments

Yep. In fact "a i32" is also legitimate, for now.