Newsgroups: comp.lang.lisp,comp.emacs,comp.lang.python,comp.lang.perl.misc Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!post.news.xs4all.nl!uucp.xs4all.nl!xs4all!spenarnc.xs4all.nl!not-for-mail From: Albert van der Horst Subject: Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade! Date: 12 Mar 2012 11:27:25 GMT Message-ID: Lines: 38 Organization: Dutch Forth Workshop References: <0078bbfb-5dfc-48fc-af1a-69de3cf15c3e@b1g2000yqb.googlegroups.com> Xref: csiph.com comp.lang.lisp:8460 comp.emacs:1238 comp.lang.python:21528 comp.lang.perl.misc:4715 In article <0078bbfb-5dfc-48fc-af1a-69de3cf15c3e@b1g2000yqb.googlegroups.com>, Xah Lee wrote: >New Science Discovery: Perl Idiots Remain Idiots After A Decade! > >A excerpt from the new book =E3=80=88Modern Perl=E3=80=89, just published, = >chapter 4 >on =E2=80=9COperators=E2=80=9D. Quote: > >=C2=ABThe associativity of an operator governs whether it evaluates from >left to right or right to left. Addition is left associative, such >that 2 + 3 + 4 evaluates 2 + 3 first, then adds 4 to the result. >Exponentiation is right associative, such that 2 ** 3 ** 4 evaluates 3 >** 4 first, then raises 2 to the 81st power. =C2=BB > >LOL. Looks like the perl folks haven't changed. Fundamentals of >serious math got botched so badly. You're confused. Associativity of operators is defined in mathematics. (The same concept may be used in programming). "left-associativity" and "right-associativity" are computer languages concept and their definitions are not from mathematics. Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c). Using xxx-associativity to indicate that it *does* matter is a bit perverse, but the Perl people are not to blame if they use a term in their usual sense. Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst