3 ms·
My two cents on optional parentheses, optional commas, and optional syntax in general are that it's about readability and style. If the statement that you're wr
by jashkenas 16y ago
My two cents on optional parentheses, optional commas, and optional syntax in general are that it's about readability and style. If the statement that you're writing isn't clear without disambiguating the structure, then by all means, use parentheses. But if you're choosing between this:
print("Hello");
And this:
print "Hello"
(Which are equivalent in CoffeeScript) ... I'll take the latter every time.