Path: csiph.com!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <2379377.kQmhC9yAxR@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 01 Jul 2012 09:04:22 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <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> Followup-To: comp.lang.python MIME-Version: 1.0 Lines: 46 NNTP-Posting-Date: 01 Jul 2012 09:04:23 CEST NNTP-Posting-Host: e5c7eaeb.newsspool3.arcor-online.net X-Trace: DXC=Jfg1QN4bd[b[F<50eo:0knMcF=Q^Z^V3h4Fo<]lROoRa8kFL@ 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 ==, as 'false == false == false' > evaluates as '(false == false) == false' to 'false' in Java and Lua. > (Ruby produces a syntax error for this, roughly the Haskell approach.) > > But we have Javascript: s/Javascript/ECMAScript (implementations)/g > 1 < 1 < 2 > => true > false == false == false > => false Correct, because 0. 1 < 1 < 2 1. (1 < 1) < 2 2. false < 2 3. 0 < 2 4. true and 0. false == false == false 1. (false == false) == false 2. true == false 3. false See also the ECMAScript Language Specification, 5.1 Edition, section 11.9: -- PointedEars Please do not Cc: me. / Bitte keine Kopien per E-Mail.