Hi,
In message "Re: Recent changes in Range#step behavior"
on Thu, 27 Mar 2008 02:25:54 +0900, Dave Thomas <dave / pragprog.com> writes:
|If member? is allowed to use non-discrete comparisons for integers,
|then it should probably also do them for ranges of strings. Right now
|
|('a'..'z').member?('aa')
|
|returns false, because 'aa' is not in the set 'a', 'b'...'z'. But,
|logically, if (1..3).member?(1.5) is true, then the string range
|should return true as well, as 'a' <= 'aa' <= 'z'.
OK, makes sense. Do you mean member? (and its alias include?) should
always use discrete comparison?
matz.