Re: RFC 23 (v5) Higher order functions
[email protected] (Chaim Frenkel) 21 Sep 2000 17:22:01 -0400
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "AG" == Alan Gutierrez <[email protected]> writes: AG> Just like the the regex match placeholders, positional placeholders begin AG> with ^1 so that ^1 == $_[0]. If this doesn't make sense to it is AG> probably because you are new to Perl and are not familiar with regular AG> expressions, but we did things this may to make it easier for AG> you to understand (assuming you read the regex chapter of the Camel AG> before the curry chapter.) Just saying that makes my point. ^0 and $0 ^1 and $1 The ordinal concept onto the arguments matches much better. There is already a break between @foo = /(..) (..) ... / and $foo[0] and $1, ..., $foo[n] and $n I and several other folks made our point. We see this more akin in nomenclature and appearance to the regexp matches, then to a invisible offset into an array. All I ask is the Damian add our comments to the RFC. <chaim> -- Chaim Frenkel Nonlinear Knowledge, Inc. [email protected] +1-718-236-0183