From: David Alan Black Date: 2001-02-20T11:56:17+09:00 Subject: [ruby-talk:11145] Re: Summary: RCR #U002 - proper new name fo r indexes On Tue, 20 Feb 2001, David Alan Black wrote: > On Tue, 20 Feb 2001, Mathieu Bouchard wrote: > > > On Tue, 20 Feb 2001, David Alan Black wrote: > > > For some reason I'm not convinced that the > > > underlying array-hash structural similarity means that the terms > > > should be the same, or developed in parallel. (For instance, I've > > > never missed having Array#has_value?) > > > > Maybe that's because it's called Array#include? ? > > I meant I never missed being able to call it as #has_value? (as one > can in the case of Hash#include?) -- just musing about the fact that > there are already differences in array and hash terminology. Whoops. I mean as one can in the case of Hash#has_key?/#include?. In fact, from the point of view of the question of parallel method naming (based on the idea that an array is a kind of hash), it's interesting that #include? refers to the key in the case of Hash and the value in the case of Array. I guess I don't see the parallel naming as a priority in part because there are already cases where, for reasonable reasons, we don't have it. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav