[Haskell-cafe] Proposal: (.:) operator in base.

Ben hyarion at iinet.net.au
Tue Aug 23 07:19:38 UTC 2016


At the semantic level of "does my program compute correct results" they're identical. At the operational level of "how fast does my program run" they're different.


On August 23, 2016 5:09:19 PM GMT+10:00, Tom Ellis <tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk> wrote:
>On Mon, Aug 22, 2016 at 10:23:07PM -0700, wren romano wrote:
>>     (.) f g = \x -> f (g x)
>> 
>> vs:
>> 
>>     (.) f g x = f (g x)
>> 
>> has ramifications, though it's fairly easy to guess which one of
>those
>> two will be most performant.
>
>Are these not synonyms?  What is the meaning of
>
>    fargs var = expr
>
>if not
>
>    fargs = \var -> expr
>
>?
>_______________________________________________
>Haskell-Cafe mailing list
>To (un)subscribe, modify options or view archives go to:
>http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>Only members subscribed via the mailman list are allowed to post.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160823/8da84d14/attachment.html>


More information about the Haskell-Cafe mailing list