Yeah, I guess that's a pretty good reason. Oh well, I'll just use "between" from now on :o) -Kurt On Sat, Jul 19, 2003 at 03:47:38PM +0900, Gavin Sinclair wrote: > On Saturday, July 19, 2003, 3:58:51 PM, Kurt wrote: > > > When I learned python I was overjoyed that I could evaluate 1 < 2 < 3 > > and get "true". I just realized that you can't do that in Ruby. Is > > there a reason why? Is it good? I know I can use "between", but > > still... > > I agree it would be cool, but it's pretty clear why Ruby doens't > support it: > > 2 < 3 == true > 1 < true == error > therefore 1 < 2 < 3 == error > > Ruby is a very expression-oriented language, and derives its strength > from conceptual purity. If an expression evaluated to X in some > circumstances and Y in others, a small part of Ruby would be lost. > > Gavin > > >======= End of Original Message =======<