A newline (or semicolon) is required after : to indicate it's a label.
I think I supported labels because one of the WebAssembly guys wanted them and preferred the traditional syntax... but it seems like a prefix-colon would work pretty much just as well.
LES3 currently supports labels (technically the suffix-colon operator):
A newline (or semicolon) is required after
:
to indicate it's a label.I think I supported labels because one of the WebAssembly guys wanted them and preferred the traditional syntax... but it seems like a prefix-colon would work pretty much just as well.
Removing labels would have two benefits:
JSON is more likely to be parseable, since
:
would be a binary operator in this code:However LES3 would still not really be JSON-compatible since line breaks remain significant in other cases such as this: