develooper Front page | perl.perl6.internals | Postings from July 2002

Re: Perl6 grammar (take IV)

Thread Previous | Thread Next
From:
Larry Wall
Date:
July 6, 2002 18:13
Subject:
Re: Perl6 grammar (take IV)
Message ID:
Pine.LNX.4.44.0207061811360.14784-100000@london.wall.org
On Sat, 6 Jul 2002, Trey Harris wrote:
: In a message dated Sat, 6 Jul 2002, Sean O'Rourke writes:
: > - Implicit currying variables ($^a etc) are in.  I thought I had read
: >   somewhere they were gone in favor of closure args, but people seem
: >   to be using them, and they're not hard to put in.
: 
: My understanding is that they still exist as placeholder variables, but
: no longer implicitly curry.  I.e.,
: 
: {$^a + $^b}
: 
: is a synonym for
: 
: -> $a, $b {$a + $b}

That is correct.  Currying will be done via some explicit method.
Sentiment at yapc favored something resembling:

    &incr := &add.assuming(x => 1);

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