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. > > Your suggested changes to notation don't allow for named placeholders. > Besides, '__' is clearly a blank spot, and therefore a place waiting to be > filled in (a placeholder, in fact!). Just as simply, - $foo is the variable 'foo' - ^foo is the placeholder 'foo' - $_ is the default variable - ^_ is the default placeholder Or any variation, given Nathan Wiger's original list (! ^ &) and others. Although, I suppose '&' would not work. I too am having trouble following the current placeholder syntax. :) Regards, Mike Pastore [EMAIL PROTECTED]
- 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 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: RFC 23... Nathan Wiger
- Re: Different higher-order func notation? (was Re... Jeremy Howard
- Re: Different higher-order func notation? (wa... Mike Pastore
- Re: Different higher-order func notation?... Nathan Wiger
- Re: Different higher-order func nota... Jeremy Howard
- Re: Different higher-order func ... John Porter
- Re: Different higher-order func nota... Damian Conway
- Re: Different higher-order func nota... Mike Pastore
- Re: Different higher-order func nota... John Porter
- Re: Different higher-order func notation?... Ken Fox
- Re: Different higher-order func nota... Mike Pastore
- Re: Different higher-order func ... Nathan Wiger
- Re: Different higher-order func ... Ken Fox