caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] inlining/eta-expansion question
@ 2012-02-23 18:53 Jacques Carette
  2012-02-24  1:15 ` Jacques Garrigue
  0 siblings, 1 reply; 2+ messages in thread
From: Jacques Carette @ 2012-02-23 18:53 UTC (permalink / raw)
  To: caml-list

What difference is there, if any, between
   let plus = (+)
and
   let plus = fun a b -> a + b
?

I know that, operationally, these are identical.  What I am wondering 
is, do applications of 'plus' always compile down to the exact same thing?

In code that I am writing, due to interactions with the value 
restriction, I have to eta-expand all my definitions.  So I am wondering 
what cost I will have to pay for the 'genericity' of my code.

Jacques

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-24  1:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 18:53 [Caml-list] inlining/eta-expansion question Jacques Carette
2012-02-24  1:15 ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).