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, Basile STARYNKEVITCH wrote: > I also suggest the following di-graph for comments > #! (which is compatible with Unix first line execve convention) Aha! OK- here is a really good reason to add single line comments, with #! as the comment delimiter- so we can put #!/usr/local/bin/ocaml as the first line in our programs, and have Ocaml as an interpreted scripting language, as well as a interpreter/bytecode/native language. Congratulations. This is by far the best argument I've seen put forth so far. So much so that it's actually changed my mind to be in favor of the proposal. > -- (which is like comments in Ada and Haskell) > // (reminding of Java & C++) > %% > |* for the visual effect > !! (old Basic had single ! for comment) > > For tri-graph starting line comments we could consider > --- > *** > ||| > /// > -*- All of the above are valid operator names. Not sure about [*]. See page 91 of the language standard. 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