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@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.