-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Do we have opinions on the new keyword args feature in ruby 2.1.2 - specifically favouring them over methods having an options hash?
Some discussion on this here (which I kind of agree with); http://robots.thoughtbot.com/ruby-2-keyword-arguments
Usually, the code clarity and maintainability gained from keyword arguments outweigh the terseness offered by positional arguments. I would use positional arguments if I could easily guess their meanings based on the method’s name, but I find this rarely to be the case.
Given we're using Ruby 2.1.2 almost everywhere, should we update our Ruby guide to consider this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels