4 ms·
The only place where I think we could make the semicolons optional is at the end of a let-binding or a record (like json does iirc), which would indeed be a sma
by regnat 9y ago
The only place where I think we could make the semicolons optional is at the end of a let-binding or a record (like json does iirc), which would indeed be a small but blessed change.
For the array litterals, I don't really see which improvements your syntax brings (except suppressing the space-separated list, which conflicts with the syntax for function application). Is it used somewhere else ?
- atemerev 9y agoHere is the example where I just removed every semicolon. https://gist.github.com/atemerev/889806081ed8fcb77495666fac9930e5 https://gist.github.com/atemerev/889806081ed8fcb77495666fac9... For me, it looks infinitely better.
- atemerev 9y ago(I can't reply to the previous message regarding no-semicolon syntax, so I have to do it here. I definitely do not want to propose whitespace-sensitive syntax — just newline-sensitive, like in Scala, Swift, modern ECMAscript, or just any modern programming language with C-like syntax. Semicolons are allowed, BTW — they are just optional and inferred from newlines).