3 ms·
> I personally find the lack of parentheses makes the code > harder to read [...] but faster to write. Then simply use parentheses. They're still there fo
by jashkenas 13y ago
> I personally find the lack of parentheses makes the code
> harder to read [...] but faster to write.
Then simply use parentheses. They're still there for you to rely on as much as you'd like to. One main reason why they're optional is so that things flow together nicely with the significant whitespace, like so:
filter list, (item) ->
if item.flag is 'priority'
item.visible
else
false
... writing the above with all parentheses present wouldn't be quite as nice -- and I don't think any clearer to read.