<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/b842fa0bde343ece5699d91c444d6e07"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-12-10T03:10:15"
  subject="[Caml-list] labels overhead"
  prev="2002/12/a35e9a667edfd52c36feaaab51a66de6"
  next="2002/12/3f6252c496a44de9d62e600f76053aba"
  next-in-thread="2002/12/3f6252c496a44de9d62e600f76053aba"
  prev-thread="2002/12/303524700573103127c46d2209d89f49"
  next-thread="2002/12/d1fe91a7143c27a0eff87d4d142f116e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] labels overhead">
<msg 
  url="2002/12/b842fa0bde343ece5699d91c444d6e07"
  from="Oleg &lt;oleg_inconnu@m...&gt;"
  author="Oleg"
  date="2002-12-10T03:10:15"
  subject="[Caml-list] labels overhead">
<msg 
  url="2002/12/3f6252c496a44de9d62e600f76053aba"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-12-10T03:31:02"
  subject="Re: [Caml-list] labels overhead">
</msg>
</msg>
</thread>

<contents>
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

</contents>

</message>

