On Wed, Dec 26, 2012 at 10:43 PM, Henry Maddocks <[email protected]> wrote:

> PS. To answer your original question, I personally don't like hashed params 
> because they hide the interface, but I occasionally use them because 
> sometimes they 'feel' right. Looking back over my code it is usually when I 
> have a lot of default or optional params.

Using a Struct generated class might give a bit more type safety since
all possible keys are laid out explicitly.

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