[elixir-core:6142] why are zero arity anonymous functions not allowed?

2016-07-20 Thread Scott Parish
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

Re: [elixir-core:6143] Re: why are zero arity anonymous functions not allowed?

2016-07-20 Thread Scott Parish
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. &

Re: [elixir-core:6312] Re: why are zero arity anonymous functions not allowed?

2016-09-13 Thread Scott Parish
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