From: Robert Klemme Date: 2012-12-28T08:19:45+09:00 Subject: Re: When to use Hashed Parameters for method calls. On Thu, Dec 27, 2012 at 11:40 PM, Henry Maddocks wrote: > > On 28/12/2012, at 12:06 AM, Robert Klemme wrote: >> Using a Struct generated class might give a bit more type safety since >> all possible keys are laid out explicitly. > > Yes, this is a good compromise, but it always feels odd to me to create such a short lived object. Though I guess the params Has is a short lived object too. Maybe if you start reasoning about that Struct you find out it's not so short lived any more because it can live longer. Refactorings can have surprising results at times. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/