ruby-science icon indicating copy to clipboard operation
ruby-science copied to clipboard

Keyword arguments and Long parameter list

Open tute opened this issue 10 years ago • 0 comments

The chapter on long parameters list doesn't mention Ruby 2 keyword arguments. While it doesn't solve the long list problem, unlike the mentioned alternative with hashes, Ruby will show the required names in an error message due to missing parameter, and the solution wouldn't require positional knowledge.

I think it makes for a worthy addition.

tute avatar Oct 24 '15 03:10 tute