On 1/13/07, Robert Dober <robert.dober / gmail.com> wrote:
> On 1/13/07, Martin DeMello <martindemello / gmail.com> wrote:
> >
> > On 1/13/07, Mauricio Fernandez <mfp / acm.org> wrote:
> > >
> > > Do you feel that store_{once,new,unique} is too long?
> > > (I have a slight preference for "once"; "unique" seems a bit puzzling
> > since it
> > > seems to refer to the key, which is always unique)
> >
> > Even 'store_once' seems to refer to the value rather than the pair,
> > which is why I like "underlay" - it suggests that if there is
> > something already in the hash, it will mask the value you are trying
> > to add.

Can we please just agree to write:
hash[key] = value unless hash.key?(key)
I mean.. how often do you do this?