3 ms·
I agree with your general point, but I don't really see how omitting those parentheses invites ambiguity. def reply_to_post text end What could anyone imagin
by danenania 14y ago
I agree with your general point, but I don't really see how omitting those parentheses invites ambiguity.
def reply_to_post text
end
What could anyone imagine text to be in this context aside from an argument? I get that using parentheses is more familiar coming from languages with C syntax, but I see no other rationale. I've never worked with anyone who stumbled over this. It's always just: 'oh cool, I didn't realize you could omit parentheses there.'
- OriginalSyn 14y agoI may have been thinking of a edge case in CoffeeScript when I wrote that, but you're right.
- xentronium 14y agoIt just doesn't scan well. It's quite easy to misread this as reply_to_post_text, for example.