News for hackers. Stuff that matters.
Re:Ruby 2.0.0 Released by grey-area on Sunday February 24, 2013 @06:33PM (#5276456)
yes I see your point, it just feels inconsistent somehow, as named parameters are nicely self-documenting, could be used to generate docs etc, but that's probably just a foolish consistency. In your example you could be cute and have something like:

     protagonist.throw(a: => potato, :at => zombie, :force => 3) 
which would be just as nice. But I'm sure there are places where this will be useful/necessary, in your chained example with single args it feels forced to have to name them.

There are no comments on this comment yet.