From: Andrej Bauer <Andrej.Bauer@andrej.com>
To: caml-list@yquem.inria.fr
Cc: Jean Krivine <jean.krivine@gmail.com>
Subject: Re: [Caml-list] Difference between "let rec" and just "let"?
Date: Wed, 13 Aug 2008 20:39:43 +0200 [thread overview]
Message-ID: <48A32A6F.4050505@andrej.com> (raw)
In-Reply-To: <dc2907b70808130652u70a9b3e9r4784c506f360b5f8@mail.gmail.com>
Jean Krivine wrote:
> Each time you use let, you can also use let rec,
Not quite. For example:
let x = 5 in
let x = x + 10 in
x
is not equivalent to
let rec x = 5 in
let rec x = x + 10 in
x
(In fact the second one doesn't compile.)
Andrej
next prev parent reply other threads:[~2008-08-13 18:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 12:49 circ ular
2008-08-13 13:52 ` [Caml-list] " Jean Krivine
2008-08-13 18:39 ` Andrej Bauer [this message]
2008-08-13 15:17 ` Christophe TROESTLER
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=48A32A6F.4050505@andrej.com \
--to=andrej.bauer@andrej.com \
--cc=caml-list@yquem.inria.fr \
--cc=jean.krivine@gmail.com \
/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