I guess it's a matter of preference and personal perspective. Whether you 
choose to express it as a series of transformations through functions, or 
whether you nest it into the return value. Just two different ways of 
thinking about the same thing.

You could similarly argue there is no need for the division operator when 
you could always just multiply by the reciprocal.

On Friday, May 20, 2016 at 7:54:50 AM UTC-7, Onorio Catenacci wrote:
>
> +1 Greg.  Totally agree.  To quote the old saw--too much of a good thing 
> is not a good thing.
>
>
> On Thursday, May 19, 2016 at 5:58:38 PM UTC-4, Greg Vaughn wrote:
>>
>> I love the pipe operator. I really do. However, I worry that some people 
>> are overusing it. What's wrong with this?: 
>>
>> def return_first(id_list) do 
>>   {:ok, List.first!(id_list)} 
>> end 
>>
>> I really don't see put_ok/1 and put_error/1 being worth putting in std 
>> lib. I don't want to encourage over-use of the pipe operator. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/909738c8-7f82-4f21-925d-642570eabc13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to