It seems inconsistent that the anonymous function sugar is not allowed for
zero arity functions. Is there a good reason for this, or did this need to
be proposed as a feature request instead of a bug?
Reference: https://github.com/elixir-lang/elixir/issues/5042
Thanks
--
You received this mes
where zero arity functions are used
> frequently, but it does seem like it would be a win for consistency and
> readability in certain cases.
>
> Perhaps there are ambiguities introduced however without &1 and friends?
> I'm sure one of the core team members will clarify.
&
gt; &fun/2 could be parsed as (fn -> fun end) / 2 or fn(x,y) -> fun(x,y) end
>
>
> On Thursday, July 21, 2016 at 12:29:06 AM UTC-3, Scott Parish wrote:
>>
>> Another one is: :timer.tc(&mycode(args))
>>
>> Or the case where this originally came up tod