Browse thread
[Caml-list] single-line comment request
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Brian Hurt <brian.hurt@q...> |
| Subject: | Re: [Caml-list] single-line comment request |
On Tue, 8 Apr 2003, Nickolay Semyonov-Kolchin wrote: > 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. Too bad that ## is the C preprocessor token-pasting symbol. Otherwise that'd work. > > 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. Ever been on a coding standards committee? I have. Loads of fun. Seriously, coding standards are a really good idea- when they can be enforced. But there are lots of situations where they can't be. One obvious example is open source. > > 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*. The language architects version of planting vines. On the other hand, this complaint can be fixed simply by changing the keystroke combination, to say (| or (/ (the second being the obvious reference to C++'s /* and //). > > P.S. > This moved fast from technical field to religious. > I must have missed the technical phase of the conversation, then. :-) 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