> I like the idea of currying, it seems powerful and Perlish in many
> ways. However, I don't like the currying operator chosen, because
> of it's ugliness (IMHO), and its potential for ambiguity (human,
> not necessarily parser).
It's not an operator, it's a placeholder.
> So, here is my proposal to change the operator.
>
> from to
> ------ ---------
> ^_ ^^
> ^2, ^3 ^^2, ^^3
> ^named ^^named
>
> To me, it stands out better, and is less likely to cause the programmer
> looking at it to scratch his head and try to figure out if it's an xor or a
> curry. I did it myself several times, and I consider myself at least a
> competent programmer.
We chose the placeholder notation to be consistent with the scalar notation
(but using a ^ rather than a $):
scalar placeholder
analog
$x, $y ^x, ^y
$1, $2 ^1, ^2
$_ ^_
The RFC should probably say that explcitly.
Damian
Damian