[erlang-questions] Funargs: Ruby-like blocks for Erlang
Tony Arcieri
tony.arcieri@REDACTED
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:
fun
[clauses]
end
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:
function(...) do
[clauses]
end
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
>
>
--
Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110721/427f3618/attachment.htm>
More information about the erlang-questions
mailing list