From: Francis Burton Date: 2008-03-30T04:13:54+09:00 Subject: Re: (1..5) === 3 > true 3 === (1..5) > false Giles Bowkett wrote: > The whole point of Ruby is that if you don't want things to happen the > way they happen, you can rewrite large portions of the language - > including this piece - with very little effort. So not only is it > pointless to tell people what the language should do, but also, if you > really want the language to do that, you can **make** it do that with > hardly any effort at all. Is there a construct like this in Ruby? if x in (1..5) This seems a lot more intuitive and easier to read than "(1..5) === x", so is it possible to modify the language to make it do that? Francis (Ruby nuby) -- Posted via http://www.ruby-forum.com/.