From: Daniel Carrera Date: 2003-07-19T15:51:42+09:00 Subject: Re: chaining comparisons -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Jul 19, 2003 at 03:47:38PM +0900, Gavin Sinclair wrote: > 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. I realize that this is a dumb question, but what is an expression-oriented language? Can you contrast Ruby with a language that is not expression-oriented? - -- Daniel Carrera | OpenPGP fingerprint: Mathematics Dept. | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88 UMD, College Park | http://www.math.umd.edu/~dcarrera/pgp.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (SunOS) iD8DBQE/GOp2nxE8DWHf+OcRAjzWAJ0c6ZKLbvxueD6lSX4T7dWBhS0eMQCeJA54 IFr+5WRHMr+tDTeIz+YDNwo= =Y+Y0 -----END PGP SIGNATURE-----