In message “Re: [BUG] string range membership”
on Wed, 23 Nov 2005 23:57:41 +0900, “Warren B.”
|> I’d argue that it is not a bug, as there is no unique
|> isomorphie from strings to integers.
| I have to disagree.
For your information, member? used to iterate over items to check
membership. But since confusion between include? and member?, they
were merged. The point is Ranges are used both for ranges and
intervals. Sometimes users want it to behave like a range surrounded
by begin/end values. Sometimes they want it to behave like a set of
values, that #each produces.
I’d like to care this issue, but I haven’t know the right way to solve
it yet. Perhaps we should provide both membership method, with right
names for each. Any ideas?