From: Henry Maddocks Date: 2012-12-28T07:40:13+09:00 Subject: Re: When to use Hashed Parameters for method calls. On 28/12/2012, at 12:06 AM, Robert Klemme wrote: > On Wed, Dec 26, 2012 at 10:43 PM, Henry Maddocks 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. 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. Henry