Re: [elixir-core:9360] [Proposal] Add Function.const/2

2020-02-04 Thread Austin Ziegler
On Tue, Feb 4, 2020 at 10:04 AM Ben Wilson wrote: > > The code Function.constant(c) is much more expressive and descriptive > than fn _ -> c end. > > To be clear, if this could work without macros, I'd be inclined to agree, > although I recognize that there may be some who do not. My issue

Re: [elixir-core:9360] [Proposal] Add Function.const/2

2020-02-04 Thread Ben Wilson
> The code Function.constant(c) is much more expressive and descriptive than fn _ -> c end. To be clear, if this could work without macros, I'd be inclined to agree, although I recognize that there may be some who do not. My issue personally is that there simply isn't any function you can