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

Reply via email to