[Haskell-cafe] Re: [Haskell-beginners] map question

Luke Palmer lrpalmer at gmail.com
Tue Oct 20 00:31:26 EDT 2009


On Sun, Oct 18, 2009 at 5:31 PM, Will Ness <will_n48 at yahoo.com> wrote:
> Luke Palmer <lrpalmer <at> gmail.com> writes:
>
>>
>> Or you could use the "subtract" function.
>>
>>   >>> map (subtract 2) [3,4,5]
>>   [1,2,3]
>
> I don't want to.

I think at about this point, this stopped being an intellectual
discussion.   Preparing for academic flame war...

>>
>> I don't think syntax sugar is worth it in this case.
>
>
> I do. Operators are great because they make our intent visible, immediately
> apparent. Long words' meaning, like subtract's, is not immediately apparent,
> and they break consistency. Not everyone's first language in life was English,
> you see.
>
> (`foldl`2) works.
>
> (`-`2) should too.
>
> I'll settle for (+(-2)) for now, but it ain't that pretty.
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list