Francis Burton pisze: > 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) Use (1..5).include? x. Ruby tends to use methods instead of abusing keywords. lopex