From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA08526; Sat, 21 Jul 2001 20:08:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA08515 for ; Sat, 21 Jul 2001 20:07:58 +0200 (MET DST) Received: from shell5.ba.best.com (shell5.ba.best.com [206.184.139.136]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6LI7v111717; Sat, 21 Jul 2001 20:07:57 +0200 (MET DST) Received: from localhost (bpr@localhost) by shell5.ba.best.com (8.9.3/8.9.2/best.sh) with ESMTP id LAA02005; Sat, 21 Jul 2001 11:07:51 -0700 (PDT) Date: Sat, 21 Jul 2001 11:07:51 -0700 (PDT) From: Brian Rogoff To: "Alexander V. Voinov" cc: Damien Doligez , bpr@best.com, caml-list@inria.fr Subject: Re: [Caml-list] indent 2 In-Reply-To: <3B59B19B.4A7BCEAC@quasar.ipa.nw.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk No idea why I was specifically addressed for this, but since you ask... On Sat, 21 Jul 2001, Alexander V. Voinov wrote: > Hi Damien, > > Damien Doligez wrote: > > > > >From: "Alexander V. Voinov" > > > > >Is the indentation with the step 2 a _must_ for those who program in > > >OCaml? I got used 4, and already set all the necessary variables for > > > > Hey, the Soviet Union doesn't exist any more. Welcome to the free > > world, comrade. > > Oh, if it were that simple. The pressure of the society may be much > stronger than the pressure of an external authority, which contrasts > itself to the society. Because the former penetrates deeper into one's > mentality. (Sorry for offtopic) That's too deep for me, I'm just an American. When I first started programming seriously with lots of other people reading and modifying programs that I wrote, people would argue a lot about non-issues like where to put the braces. My basic rule is that I'd like the programs to look as though they'd been written by one person, with a consistent style. I can basically adapt to anything and in two weeks or so a new style will seem normal. I note that the new guidelines Pierre mentions say much the same thing Choose a generally accepted style of indentation, then use it systematically throughout the whole application. It seems that the Caml community mostly indents by two spaces, so if you'd like to be a good neighbor you should do so as well. No one will shun you if you refuse and use four spaces, and your code will still be readable. Well, OK, I'll shun you, but probably noone else :-). Its wise to invest some time reading the compiler sources. I wish I had done so earlier. -- Brian PS: It would be useful to have the programming guidelines extended to cover programming with classes and modules. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr