<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Lars Heuer wrote:
<blockquote cite="mid:1343995808.20080121213030@semagia.com" type="cite">
<pre wrap="">Hi,
[...]
</pre>
<blockquote type="cite">
<pre wrap="">Regarding single-line-comments:
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> 1. Each single-line-comment can be emulated by exactly one multi-line
comments, but you cannot emulate each multi-line-comments by
</pre>
</blockquote>
<pre wrap=""><!---->
I hope this isn't a request to drop single line comments.</pre>
</blockquote>
Not at all. :-) (Actually, it is a conditional request just in case
somebody proposes we need only _one_ comment syntax, then I would drop
single-line-comments before I would drop multi-line-comments.)<br>
<blockquote cite="mid:1343995808.20080121213030@semagia.com" type="cite">
<pre wrap="">Having
multi-line comments only is a mistake.
</pre>
</blockquote>
I fully agree. I use single-line comments as well and find their
existence useful.<br>
<blockquote cite="mid:1343995808.20080121213030@semagia.com" type="cite">
<pre wrap="">
If I want to comment out a line I don't want to jump to the end of the
line (or to the following line) to add my "here ends my
comment"-delimiter.Therefor a single-line comment is more important
for me (and editors may or may not help you if you want to comment out
block of code).
</pre>
<blockquote type="cite">
<pre wrap=""> 2. Furthermore, if you view a CTM document as a stream of characters,
the questions are just about which "comment-start-sequence", which
"comment-end-sequence". For single-line-comments, the
"comment-end-sequence" is, by definition, also a
"line-end-sequence".
</pre>
</blockquote>
<pre wrap=""><!---->[...]
Not sure if I understood this, but the EOL is not part of the
comment. Currently a single line comment is defined as "starts with #
and ends just before the EOL", if that matters.
(Replace "#" with "!!" if the Kyoto comment syntax is approved :/ ).
</pre>
</blockquote>
The point I wanted to make is independent of whether EOL is actually
part of a single-line-comment or just (by definition) following it. I
just wanted to say that forcing EOL to have two meanings (represent a
line-break and a comment end) even if the author only wants to have
only one of these meanings (just represent a line-break but not
represent a comment end) is poor design. (Allowing EOL to have both
these meanings (single-line-comment) while also allowing EOL to have
only its original meaning (multi-line-comment) is considerably better.)<br>
<blockquote cite="mid:1343995808.20080121213030@semagia.com" type="cite">
<pre wrap="">
Best regards,
Lars
</pre>
</blockquote>
ciao,<br>
Xuân. :-)<br>
<br>
</body>
</html>