Re:Such a Little Thing: The Semicolon in Rust
by lmm on Friday October 19, 2012 @05:24AM
(#4672821)
No you wouldn't. See Javascript for all the pain that causes. Language syntax needs to be dictatorial so that the language is consistent for reading (which is more important than writing).
[ Parent
| on HN ]
Re:Such a Little Thing: The Semicolon in Rust
by joeyespo on Sunday October 21, 2012 @03:59PM
(#4680602)
JavaScript's problem isn't that you can choose whether or not to use semicolons, it's that they're automatically put in for you if you omit them.
http://lucumr.pocoo.org/2011/2/6/automatic-semicolon-inserti...
Technically, Python is a much better example of optional semicolons since you can use them and they're not required. Of course, the real reason they exist is for compound statements.
http://stackoverflow.com/questions/8236380/why-is-semicolon-...