[ruby-core:32688] Re: [Ruby 1.9-Feature#3845][Open] "in" infix operator

From: Roger Pack <rogerdpack2@...>
Date: 2010-10-04 18:16:32 UTC
List: ruby-core #32688
> This was proposed previously:
>
> class Object
> =A0def in? enum
> =A0 =A0enum.include? self
> =A0end
> end

Yeah I proposed it.
Now that I have learned about Comparable's #between I am not as averse to i=
t.
I would be ok with "in" keyword or .in? method

-r

In This Thread