[32371] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3638 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 12 09:09:42 2012

Date: Mon, 12 Mar 2012 06:09:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 12 Mar 2012     Volume: 11 Number: 3638

Today's topics:
    Re: New Science Discovery: Perl Detractors Remain Idiot (Seymour J.)
    Re: New Science Discovery: Perl Idiots Remain Idiots Af <albert@spenarnc.xs4all.nl>
    Re: New Science Discovery: Perl Idiots Remain Idiots Af <kiuhnm03.4t.yahoo.it>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 12 Mar 2012 08:40:56 -0400
From: Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid>
Subject: Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade
Message-Id: <4f5deed8$6$fuzhry+tra$mr2ice@news.patriot.net>

In <m0rrtp.2pl@spenarnc.xs4all.nl>, on 03/12/2012
   at 11:27 AM, Albert van der Horst <albert@spenarnc.xs4all.nl> said:

>You're confused.

No, s/h/it is just an acephalic troll with delusions of adequacy.

>"left-associativity" and "right-associativity" are computer
>languages concept and their definitions are not from mathematics.

Don't confuse the google pest with facts.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org



------------------------------

Date: 12 Mar 2012 11:27:25 GMT
From: Albert van der Horst <albert@spenarnc.xs4all.nl>
Subject: Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!
Message-Id: <m0rrtp.2pl@spenarnc.xs4all.nl>

In article <0078bbfb-5dfc-48fc-af1a-69de3cf15c3e@b1g2000yqb.googlegroups.com>,
Xah Lee  <xahlee@gmail.com> 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



------------------------------

Date: Mon, 12 Mar 2012 14:05:54 +0100
From: Kiuhnm <kiuhnm03.4t.yahoo.it>
Subject: Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!
Message-Id: <4f5df4b3$0$1375$4fafbaef@reader1.news.tin.it>

On 3/12/2012 12:27, Albert van der Horst wrote:
> 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.

You may see it this way:
Def1. An operator +:SxS->S is left-associative iff
   a+b+c = (a+b)+c for all a,b,c in S.
Def2. An operator +:SxS->S is right-associative iff
   a+b+c = a+(b+c) for all a,b,c in S.
Def3. An operator +:SxS->S is associative iff it is both left and 
right-associative.

Kiuhnm


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3638
***************************************


home help back first fref pref prev next nref lref last post