From: David Baelde <david.baelde@gmail.com>
To: Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be>
Cc: OCaml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] New emacs tuareg mode
Date: Thu, 27 May 2010 11:46:11 +0200 [thread overview]
Message-ID: <AANLkTilHVyK36kPZnLfU0yZU7lwBEFx8SPPXgQz1C-o9@mail.gmail.com> (raw)
In-Reply-To: <20100526.163107.618177699151860158.Christophe.Troestler+ocaml@umons.ac.be>
On Wed, May 26, 2010 at 4:31 PM, Christophe TROESTLER
<Christophe.Troestler+ocaml@umh.ac.be> wrote:
> COULD PEOPLE WHO FIND THE DEFAULT USEFUL SPEAK UP NOW ?
I prefer the default:
let x = ... in
let y = ... in
foo
For what it's worth: I agree with the guidelines that two let-in are
like two assumptions and should be indented the same. But I like to
visualize the separation between the set of assumptions and what we do
with it. Another argument is that let-in creates a new scope, and
captures sequences of expressions. Visualizing it helps to understand
the structure of code. For example:
if blah then
let () = f () in
g () ;
h ()
is not the same as
if blah then
f () ;
g () ;
h ()
Cheers,
--
David
next prev parent reply other threads:[~2010-05-27 9:46 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 16:36 new emacs tuareg mode release Sam Steingold
2010-05-24 16:55 ` [Caml-list] " Stéphane Glondu
2010-05-24 17:17 ` Sam Steingold
2010-05-24 18:41 ` Philip
2010-05-24 20:09 ` Sam Steingold
2010-05-24 20:36 ` Philip
2010-05-24 20:58 ` Sam Steingold
2010-05-25 1:00 ` Eliot Handelman
2010-05-25 10:17 ` Jan Rehders
2010-05-25 18:04 ` Sam Steingold
2010-05-26 6:27 ` Stéphane Glondu
2010-05-26 13:33 ` Sam Steingold
2010-05-26 14:31 ` New emacs tuareg mode Christophe TROESTLER
2010-05-26 15:36 ` [Caml-list] " Daniel Bünzli
2010-05-26 16:01 ` Christophe TROESTLER
2010-05-26 16:34 ` Stefano Zacchiroli
2010-05-27 9:46 ` David Baelde [this message]
2010-05-27 14:25 ` Eray Ozkural
2010-05-27 15:41 ` Grant Rettke
2010-05-27 16:01 ` Edgar Friendly
2010-05-29 13:16 ` David Baelde
2010-05-24 20:34 ` [Caml-list] new emacs tuareg mode release blue storm
2010-05-26 10:02 ` Tom Hutchinson
2010-05-26 13:18 ` Eliot Handelman
2010-05-26 13:32 ` Jacques Garrigue
2010-05-26 13:33 ` Mehdi Dogguy
2010-05-26 14:01 ` Christophe TROESTLER
2010-05-26 14:09 ` Mehdi Dogguy
2010-05-24 21:44 ` Sam Steingold
2010-05-25 18:08 ` [Caml-list] " Mehdi Dogguy
2010-05-25 18:25 ` Christophe TROESTLER
2010-05-24 21:50 ` Sam Steingold
2010-05-26 22:53 ` Sam Steingold
2010-06-11 12:22 ` [Caml-list] " Albert Cohen
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=AANLkTilHVyK36kPZnLfU0yZU7lwBEFx8SPPXgQz1C-o9@mail.gmail.com \
--to=david.baelde@gmail.com \
--cc=Christophe.Troestler+ocaml@umh.ac.be \
--cc=caml-list@yquem.inria.fr \
--cc=david.baelde@ens-lyon.org \
/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