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]

Reply via email to