Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Till Varoquaux" <till.varoquaux@gmail.com>
To: "Ralph Douglass" <ralph@grayskies.net>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] cost to let rec?
Date: Fri, 9 Nov 2007 16:28:50 -0500	[thread overview]
Message-ID: <9d3ec8300711091328p7e7f0760tbd6c29f7fb975b21@mail.gmail.com> (raw)
In-Reply-To: <71767b800711091320h5d14afb8qc614fb4f1951ed06@mail.gmail.com>

On Nov 9, 2007 4:20 PM, Ralph Douglass <ralph@grayskies.net> wrote:
> Is there any cost to defining a function with "let rec" instead of just
> "let"?  A slightly longer compile time or something?  I'm just curious.

Typechecking can indeed be longer, also reccursive functions are never
inlined (and, AFAIK, the compiler considers all function defined via
let rec as reccursive)

>
> --
> Ralph
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>


Till
-- 
http://till-varoquaux.blogspot.com/


  reply	other threads:[~2007-11-09 21:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 21:20 Ralph Douglass
2007-11-09 21:28 ` Till Varoquaux [this message]
2007-11-10 17:16 ` [Caml-list] " Andrej Bauer
2007-11-11  0:44   ` Arnaud Spiwack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9d3ec8300711091328p7e7f0760tbd6c29f7fb975b21@mail.gmail.com \
    --to=till.varoquaux@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=ralph@grayskies.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox