On Thu, Dec 27, 2012 at 11:40 PM, Henry Maddocks <[email protected]> wrote:
>
> On 28/12/2012, at 12:06 AM, Robert Klemme <[email protected]> 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/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to