Ken Fox wrote: > > I think we need a curry context and that all curries must be surrounded > by parens. > ..... > sub traverse ($_); > my $sum = 0; > $root->traverse(($sum += __)); I think parens may be problematic, since nested lists flatten. Maybe curlies could be overloaded yet again? $root->traverse({$sum += __}); That has mnemonic value, since it looks kinda like an anonymous sub... -- John Porter
- RFC 23 (v1) Higher order functions Perl6 RFC Librarian
- Re: RFC 23 (v1) Higher order functions Ken Fox
- Re: RFC 23 (v1) Higher order functions Jeremy Howard
- Re: RFC 23 (v1) Higher order functions Ken Fox
- Re: RFC 23 (v1) Higher order function... Jeremy Howard
- Re: RFC 23 (v1) Higher order functions Damian Conway
- Re: RFC 23 (v1) Higher order functions John Porter
- Re: RFC 23 (v1) Higher order functions Damian Conway
- Re: RFC 23 (v1) Higher order functions Jeremy Howard
- Re: RFC 23 (v1) Higher order functions Glenn Linderman
- Re: RFC 23 (v1) Higher order functions Damian Conway
- Different higher-order func notation? (was Re... Nathan Wiger
- Re: Different higher-order func notation?... Jeremy Howard
- Re: Different higher-order func notat... Mike Pastore
- Re: Different higher-order func ... Nathan Wiger
- Re: Different higher-order f... Jeremy Howard
- Re: Different higher-ord... John Porter