From: matz@... (Yukihiro Matsumoto) Date: 2002-09-22T15:00:49+09:00 Subject: Re: select and select Hi, In message "Re: select and select" on 02/09/22, Tom Gilbert writes: |It's okay. But why not overload "values"? It sounds nice but it doesn't satisfy the second requirement in [ruby-talk:50750]: |A new method (say "quux" for example) should satisfy | | * obj.quux(a,b,c) returns [obj[a],obj[b],obj[c]] for all indexable | collections (i.e. Array, Hash, MatchData and Struct), perhaps | except for String, which is mere string of characters rather than | indexable collection. So preferably it should sound natural both | for arrays, hashes and others. | | * obj.quux() either returns an empty array or causes exception, due | to the case like obj.quux(*ary) where ary is an empty array. matz.