[erlang-questions] Funargs: Ruby-like blocks for Erlang
Fri Jul 22 06:10:49 CEST 2011
All right so yeah, I take this back too.
I guess the real way of looking at it is:
And if you look at it like that, funs are consistent with other expressions.
Funs are not consistent with other forms.
Mea culpa. Perhaps I could re-evaluate this patch with a different syntax,
one that works like:
So apologies there Mr. Richard O'Keefe. You had it right and I was mistaken.
On Thu, Jul 21, 2011 at 8:49 PM, Tony Arcieri <tony.arcieri@REDACTED>wrote:
> On Thu, Jul 21, 2011 at 7:43 PM, Richard O'Keefe <ok@REDACTED>wrote:
>> Wrong. In funs, "end" is paired with "fun" and "fun" ONLY.
> Okay, conceded (and Jachym made the same point)
> I'll revert to my other point, which is that the '->' token in Erlang is
> only found in forms outside of funs, which are expressions. No other
> expression in Erlang uses the '->' token.
> I'd also ask what you feel about the people who responded to this thread
> who find the Erlang fun syntax awkward. I certainly find it awkward.
> Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions