Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Brian Hurt <brian.hurt@qlogic.com>
To: Nickolay Semyonov-Kolchin <snob@snob.spb.ru>
Cc: Brian Hurt <brian.hurt@qlogic.com>, <caml-list@inria.fr>
Subject: Re: [Caml-list] single-line comment request
Date: Tue, 8 Apr 2003 11:08:30 -0500 (CDT)	[thread overview]
Message-ID: <Pine.LNX.4.33.0304081056250.2225-100000@eagle.ancor.com> (raw)
In-Reply-To: <200304081925.17114.snob@snob.spb.ru>

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


  reply	other threads:[~2003-04-08 16:05 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 12:56 Nickolay Semyonov-Kolchin
2003-04-08 15:17 ` Samuel Lacas
2003-04-08 14:27   ` Nickolay Semyonov-Kolchin
2003-04-08 16:21     ` Samuel Lacas
2003-04-09 15:15   ` Thierry SALSET
2003-04-08 15:19 ` Brian Hurt
2003-04-08 14:25   ` Nickolay Semyonov-Kolchin
2003-04-08 16:08     ` Brian Hurt [this message]
2003-04-08 15:38       ` Nickolay Semyonov-Kolchin
2003-04-08 17:42         ` Brian Hurt
2003-04-08 17:31     ` Chris Hecker
2003-04-08 16:29       ` Nickolay Semyonov-Kolchin
2003-04-08 19:26         ` Basile STARYNKEVITCH
2003-04-08 20:22           ` Brian Hurt
2003-04-08 21:37             ` Michal Moskal
2003-04-08 17:13       ` Brian Hurt
2003-04-08 19:23         ` Chris Hecker
2003-04-08 18:49           ` Karl Zilles
2003-04-08 19:04           ` Brian Hurt
2003-04-08 21:57             ` Daniel Andor
2003-04-08 22:07               ` Michal Moskal
2003-04-08 22:09               ` Brian Hurt
2003-04-10  2:59                 ` cashin
2003-04-10  7:58                   ` [Caml-list] { ... } vs ( ... ) vs begin ... end Frederic van der Plancke
2003-04-08 19:42           ` [Caml-list] single-line comment request Daniel M. Albro
2003-04-08 18:53             ` Alexander V. Voinov
2003-04-08 18:19               ` Nickolay Semyonov-Kolchin
2003-04-08 22:40             ` Joshua Scholar
2003-04-13 19:46             ` Andreas Rossberg
2003-04-13 22:57               ` Daniel M. Albro
2003-04-08 19:53           ` Jeff Henrikson
2003-04-08 20:31             ` Brian Hurt
2003-04-13 14:07     ` John Max Skaller
2003-04-08 15:28 ` Damien
2003-04-08 14:49   ` Nickolay Semyonov-Kolchin
2003-04-08 15:39   ` Brian Hurt
2003-04-08 15:45   ` malc
2003-04-08 15:45   ` Samuel Lacas

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=Pine.LNX.4.33.0304081056250.2225-100000@eagle.ancor.com \
    --to=brian.hurt@qlogic.com \
    --cc=caml-list@inria.fr \
    --cc=snob@snob.spb.ru \
    /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