From: Wilson Bilkovich Date: 2007-01-14T03:16:33+09:00 Subject: Re: a most undangerous Hash#store! On 1/13/07, Robert Dober wrote: > On 1/13/07, Martin DeMello wrote: > > > > On 1/13/07, Mauricio Fernandez 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?