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 SAA16429; Tue, 8 Apr 2003 18:05:00 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA16458 for ; Tue, 8 Apr 2003 18:04:59 +0200 (MET DST) Received: from epexch01.qlogic.org ([63.170.40.3]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h38G4vX24849 for ; Tue, 8 Apr 2003 18:04:58 +0200 (MET DST) Received: from epmailtmp.qlogic.org ([10.20.33.254]) by epexch01.qlogic.org with Microsoft SMTPSVC(5.0.2195.5329); Tue, 8 Apr 2003 11:05:11 -0500 Received: from [10.20.33.146] ([10.20.33.146]) by epmailtmp.qlogic.org with Microsoft SMTPSVC(5.0.2195.4905); Tue, 8 Apr 2003 11:05:10 -0500 Date: Tue, 8 Apr 2003 11:08:30 -0500 (CDT) From: Brian Hurt X-X-Sender: Reply-To: Brian Hurt To: Nickolay Semyonov-Kolchin cc: Brian Hurt , Subject: Re: [Caml-list] single-line comment request In-Reply-To: <200304081925.17114.snob@snob.spb.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 08 Apr 2003 16:05:10.0723 (UTC) FILETIME=[A1B81130:01C2FDE8] X-Spam: no; 0.00; qlogic:01 caml-list:01 nickolay:01 pushes:01 clue:01 argued:01 model:01 ocaml's:01 ocaml:01 imho:01 writting:01 purely:02 typing:03 wrote:03 perl:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 8 Apr 2003, Nickolay Semyonov-Kolchin wrote: > On Tuesday 08 April 2003 20:19, Brian Hurt wrote: > > Personally, I don't find having to type three extra characters (space > > asterix close-paren) to end a comment to be that big of a burden. If a > > comment is long enough that three extra characters pushes it over a line > > length, then the comment is long enough to deserve it's own line. And if > > the burden of typing the three extra characters is enough that you stop > > writting (as many) comments, well, you have other problems IMHO. > > > > I am not seriously opposed to this, I just don't see the value. > > > > 1) This extension won't broke existing source code. Currently, we can't use > '##' anywhere in Ocaml. Yep. Checked that before posting. It does mean you can't run your ocaml code through the C preprocessor- although I have no clue why you'd want to do that. > > 2) This is programming-style extension. I.e. if you don't like don't use it. If I'm working alone, this works. If I'm working with other people, or on other people's code, this may not be an option. > > For example, Larry Wall see no reason for multi-line comments. He argued that > single-line comments are much easier to read (See Perl6 design documents). If we had single-line comments, and the proposal was to add multi-line comments, I'd feel the same way. And Larry Wall is maybe not the best person to be taking style tips from for Ocaml. If Perl is the archtype of post-modern programming languages, than Ocaml must the the paragon of modern programming languages ("I am the very model of a modern language paradigm..."). And I think there are advantages to "modern" (in the Wall sense) languages. But I am not here to praise Larry Wall, but to bury him. > > Again, this extension is purely stylish. Actually, personally I think ## is ugly, in that it looks entirely unlike Ocaml's current comment-start sequence of (*. At least with C++, /* and // are similiar *visually*. Brian ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners