Jeremy Howard wrote: > New programmers should easily understand that: > - $foo is the variable 'foo' > - _foo is the placeholder 'foo' > - $_ is the default variable > - __ is the default placeholder. > Then, when they see the same named placeholder appear twice in the same > higher-order function, they know that each is referring to the same thing. Yes, even I understand that! Maybe this is the correct use for the prefix "*" that gets freed up by removing typeglobs ??? "_" would be OK, I suppose, but could conflict with some programming styles I've seen, with leading "_" in variable names. I was waiting to learn more about currying before I raised the issue of repeated use of placeholders, but that seemed to be missing in this RFC. Truly a candidate for being called a "whatzitz whatzitz"! -- Glenn ===== There are two kinds of people, those who finish what they start, and so on... -- Robert Byrne _____NetZero Free Internet Access and Email______ http://www.netzero.net/download/index.html
- 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
- Re: Different higher-order f... Damian Conway
- Re: Different higher-order f... Mike Pastore
- Re: Different higher-order f... John Porter