Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] single-line comment request
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nickolay Semyonov-Kolchin <snob@s...>
Subject: Re: [Caml-list] single-line comment request
On Tuesday 08 April 2003 21:08, Brian Hurt wrote:
> > >
> > > 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.

:)
Run code through prepreprocessor, for removing '##' before running through 
C-preprocessor.

>
> > 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.
>

Coding standards will help.

[Larry Wall flame skipped]

> > 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*.

Setup color-scheme in your favourite editor to make comments similar 
*visually*.

P.S.
	This moved fast from technical field to religious. 

Nickolay

-------------------
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