01alchemist / TurboScript

Super charged typed JavaScript dialect for parallel programming which compiles to WebAssembly
Apache License 2.0
494 stars 35 forks source link

Optional semicolons #117

Open MaxGraey opened 7 years ago

MaxGraey commented 7 years ago

How

var i: int32 = 0; i++
do {...} while (...)

But

for (var i: int32 = 0; i < 10; i++) {} // ok
for (var i: int32 = 0; i < 10; i++;) {} // SyntaxError

Now Skipped semicolon cause to syntax error

nidin commented 7 years ago

I was thinking about it. it's on my list.