Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'subject:code': 0.07; 'bool': 0.09; 'false)': 0.09; 'false);': 0.09; 'cc:addr:python-list': 0.10; 'driscoll': 0.16; 'evaluates': 0.16; 'false;;': 0.16; 'filename:fname piece:signature': 0.16; 'wrote:': 0.17; 'java': 0.21; 'produces': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'guess': 0.27; 'language.': 0.27; 'error': 0.30; 'could': 0.32; 'false': 0.35; 'received:192.168.0': 0.35; 'too.': 0.35; 'there': 0.35; 'but': 0.36; "didn't": 0.36; 'subject:: ': 0.38; 'things': 0.38; 'received:192': 0.39; 'little': 0.39; 'received:192.168': 0.40; 'c++:': 0.84 Date: Sat, 30 Jun 2012 23:57:36 -0500 From: Evan Driscoll User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Chris Angelico Subject: Re: code review References: <6c39594f-79cb-4d4f-967e-bbc3f68cdbdf@f8g2000pbf.googlegroups.com> <4fed59b7$0$29978$c3e8da3$5496439d@news.astraweb.com> <2662370.TGmo96CKe1@PointedEars.de> <87wr2oecf6.fsf@dpt-info.u-strasbg.fr> <4FEF7117.7000109@jollybox.de> <87bok0qr62.fsf@benfinney.id.au> <4FEFD5E5.5060802@cs.wisc.edu> In-Reply-To: <4FEFD5E5.5060802@cs.wisc.edu> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB1F303FC7FDB89EE63425B9E" Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 67 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341118677 news.xs4all.nl 6890 [2001:888:2000:d::a6]:59884 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24724 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB1F303FC7FDB89EE63425B9E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/30/2012 23:45, Evan Driscoll wrote: > You may also > want to put Java in there as well, as < is effectively not commutative > in that language. (I didn't try C#.) I guess you could actually put Lua and Ruby into the roughly same category as Java too. But things get a little nastier in =3D=3D, as 'false =3D=3D false =3D=3D = false' evaluates as '(false =3D=3D false) =3D=3D false' to 'false' in Java and L= ua. (Ruby produces a syntax error for this, roughly the Haskell approach.) But we have Javascript: 1 < 1 < 2 =3D> true false =3D=3D false =3D=3D false =3D> false O'Caml: # false =3D=3D false =3D=3D false;; - : bool =3D false # 1 < 2 < true;; - : bool =3D false Java: System.out.println(false =3D=3D false =3D=3D false); (outputs) false Lua: > print(false =3D=3D false =3D=3D false) false C and C++: std::cout << (1 < 1 < 3) << "\n"; (outputs) 1 std::cout << (false =3D=3D false =3D=3D false) << "\n"; (outputs) 0 Evan --------------enigB1F303FC7FDB89EE63425B9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJP79jAAAoJEAOzoR8eZTzgeZ0H/3Cp277/wQSdbM8/SOf0PMeN jkXMSqCXpqATFLipgsxC0oIQg8G3UEPknG+ZDfqpj1t8eS6BJVtSqxYs9pAlHYqr y6dcbYieDW6Kq7t+JprUdWxXpvdw0Ddqr3aEJS+vHlDZv2tb9xxVU1WPt4JeZ5IP N+vKg9qXHRO2b9t8QfEZZ+5LO6KrdO9jNb2VvmemZ4wJa9W8tp0zVYagct11YuaB WTKTvBzo/o/agL/gHE5tXvRBukyjmI0Vs2XF9iLyt+qEVlsJ7vk6d+TZBQ4bWp5U g49Lh1cCaMqbR/77vt21MDjlTe6a8Hmdv5xT/47kQP55VVrPtFgY4XP8ItaJHWw= =tOM7 -----END PGP SIGNATURE----- --------------enigB1F303FC7FDB89EE63425B9E--