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

Re: Perl6 grammar (take IV)

Thread Previous | Thread Next
From:
Trey Harris
Date:
July 6, 2002 17:48
Subject:
Re: Perl6 grammar (take IV)
Message ID:
Pine.BSF.4.44.0207061719580.87828-100000@bowser.eecs.harvard.edu
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}

Trey


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