From: David MENTRE <dmentre@linux-france.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Coding style: mixing tabs and spaces in indentation
Date: Tue, 5 Jan 2016 10:34:46 +0100 [thread overview]
Message-ID: <568B8E36.80409@linux-france.org> (raw)
In-Reply-To: <20160105091224.GA10087@pl-59055.rocqadm.inria.fr>
Hello,
Le 05/01/2016 10:12, Sébastien Hinderer a écrit :
> I am wondering whether there are some guidelines that have been proposed
> regarding the way OCaml code should be presented?
Here is an old documentation but a good starting point:
http://caml.inria.fr/resources/doc/guides/guidelines.en.html
> More specifically: am I correct that it is considered not such a good
> practise to mix tabs and spaces in code indentation?
Yes (and not only for OCaml).
> And if so, are
> there objective reasons for that?
Depending on user, tab size configuration is different (from 2 to 8 or
more spaces). So another user editing a code is going to see a different
code layout and break the previous layout when editing it.
Tab should probably be avoided in all coding environment except for very
specific required cases like Makefiles.
Best regards,
david
next prev parent reply other threads:[~2016-01-05 9:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 9:12 Sébastien Hinderer
2016-01-05 9:18 ` Francois Berenger
2016-01-05 9:34 ` David MENTRE [this message]
2016-01-05 9:55 ` Raphaël Proust
2016-01-05 13:46 ` Christophe Troestler
2016-01-05 15:36 ` Drup
2016-01-05 15:42 ` Simon Cruanes
2016-01-05 21:25 ` Hendrik Boom
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=568B8E36.80409@linux-france.org \
--to=dmentre@linux-france.org \
--cc=caml-list@inria.fr \
/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