3 ms·
> The Dart code in the examples is full of semicolons, that makes it an "optional semicolons language" Well of course they do because semicolons are currently
by munificent 15y ago
> The Dart code in the examples is full of semicolons, that makes it an "optional semicolons language"
Well of course they do because semicolons are currently required, but that says nothing about its relationship to JavaScript's inane semicolon insertion semantics, and I'm pretty sure you're smart enough to know that. All Dart needs to do is:
1. Treat both newlines and semicolons as the same kind of token (call it whichever you like).
2. Pick an elision strategy. Go's or Python's work fine.
3. Remove all of the ";" from your source files.
No crazy JavaScript "rewind the parse and try again" insanity.