3 ms·
To be blunt with you, I think Rubyists cling to optional parentheses for purely aesthetic reasons; all of the supposed Ruby “DSL’s” that are just method invocat
by philwelch 3y ago
To be blunt with you, I think Rubyists cling to optional parentheses for purely aesthetic reasons; all of the supposed Ruby “DSL’s” that are just method invocations without parentheses would be no less and arguably even more clear and readable with parentheses.
- hakunin 3y agoFrankly, parentheses was the last thing on my mind. I typically use them by default, and remove them in cases where it might make sense. Mostly I was thinking about stuff like arrangements of hashes, arrays, method arguments, naming of methods and variables, various styles of method chaining, block usage, etc.
- philwelch 3y agoSure, but that kind of stuff is not generally unique to Ruby.