Javascript has automatic semicolon insertion. This function:
function a() {
return
true;
}
return undefined. function a() {
return
true;
}
return undefined. def a():
return
False;
returns None. def foo
return
true
end
returns "nil" var a =
42
is only parseable one way because assignment requires an argument.Javascript just happens to make assumptions with certain kinds of ambiguities, but then, all programming languages do.
Thanks for the reference. I still think this is a general issue, and calling it semicolon insertion confuses the issue :\