On May 26, 2008, at 11:31 AM, Yukihiro Matsumoto wrote:
> |reads better to me, as does
> |
> | twotimes = fn x -> { 2 * x }
> |
> |as does
> |
> | twotimes = $B&K(B x -> { 2 * x }
>
> Interesting. What is the rationale for having both
prefix
> (fn or $B&K(B)
> and -> symbol? Honoring functional languages
tradition? I prefer
> incomplete assignment model described in the prior
post.
Partly that, and partly because I wondered if the delimiter
made
parsing easier. If not, then I'd be very happy with losing
the ->
>
>
> |In fact, given a change that allows block arguments to
be like method
> |arguments, then maybe no other change is needed. We
can always alias
> |lambda to something shorter, and then everyone is
happy
> |
> | n_times = $B&K(B { |n=2| $B&K(B
{|val| n*val}}
>
> In that case, default values patch for block parameters
are must.
and block params?
Dave
|