3 ms·
If foo("one" "two") is valid syntax it's valid. If it isn't, you'll get an error. redundancy does not assist the compiler: whether the code makes a valid
by nailer 10y ago
If
foo("one" "two")
is valid syntax it's valid. If it isn't, you'll get an error. redundancy does not assist the compiler: whether the code makes a valid AST does.
- Chris2048 10y agoThe question seems to be wrt language design, and assisting the developer. It's harder to spot the error due to the flexibility in syntax. Requiring explicit "foo" + "bar", while less sugary, would mean a missing comma in the above example could be marked by a checker as an error.