caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] labels overhead
@ 2002-12-10  3:09 Oleg
  2002-12-10  3:30 ` Jacques Garrigue
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg @ 2002-12-10  3:09 UTC (permalink / raw)
  To: caml-list

Hi

In his book Paradigms of AI Programming, P. Norvig mentions that Lisp 
functions with keyword arguments [1] suffer a large degree of overhead and 
that this may also be true for optional and rest arguments, although to a 
lesser degree [2], depending on the platform [3]. 

I'm wondering if the same is true for O'Caml. I'm guessing that it's not, 
since complete function applications using labels can be transformed into 
"normal" function calls at compile time. Am I right?

Thanks,
Oleg

[1] Called "arguments with labels" in O'Caml
[2] In Lisp, optional arguments do not have labels associated with them
[3] Chapter 10.3
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2002-12-10  3:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10  3:09 [Caml-list] labels overhead Oleg
2002-12-10  3:30 ` 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).