Version française
Home     About     Download     Resources     Contact us    
Browse thread
cost to let rec?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Till Varoquaux <till.varoquaux@g...>
Subject: Re: [Caml-list] cost to let rec?
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/