develooper Front page | perl.perl6.language | Postings from September 2004

Re: Q: re C<< -> >>

Thread Previous | Thread Next
From:
Larry Wall
Date:
September 9, 2004 09:15
Subject:
Re: Q: re C<< -> >>
Message ID:
20040909161456.GA11528@wall.org
On Thu, Sep 09, 2004 at 03:20:22PM +0200, Michele Dondi wrote:
: I hope not to raise too much the noise/signal level on list, but I have a
: question: I have had a long experience programming my HP28s pocket
: calculator, and its RPN language that AFAIK is mostly the same as that of
: newer models, supported constructs of the form
: 
:   -> a b << ... >>
: 
: where C<< -> >> is a literal right arrow char and C<<< << >>> and C<<< >> 
: >>> are literal guillemets (delimiting blocks). Just wonder wether by any 
: chance *that* language has had any influence on the
: 
:   -> $x, $y { ... }
: 
: construct.

Nope.  I used to think RPN was completely unnatural.  Then I started
learning Japanese, and now I not so sure am.  :-)

I just borrowed the -> from Perl 5 because I knew it was available,
and I thought it read better for C<for> loops than the Ruby approach.

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About