3 ms·
He spends a lot of time on the syntactic ambiguities of keyword arguments in Ruby when calling without parens. I understand how that's annoying, but how hard wo
by andrewflnr 15y ago
He spends a lot of time on the syntactic ambiguities of keyword arguments in Ruby when calling without parens. I understand how that's annoying, but how hard would it be to just put the parentheses back? He seems to be making a mountain of a molehill on that point.
- sanderjd 15y agoSeriously. I can't think of any language feature in any other language that is heaped with so much passion (both positive and negative), while being entirely mundane.
- xentronium 15y agoOptional parens are great for building DSLs and bad for everything else. As a rule of a thumb, I don't omit parens outside macros like `before_filter :smth` or `validates_presence_of :smth` or RSpec DSL `it "should ..." do`.