[sc34wg3] Comments on comments
Robert Barta
rho at devc.at
Tue Jan 29 04:23:30 EST 2008
On Tue, Jan 29, 2008 at 09:53:30AM +0900, Jaeho Lee wrote:
> Hello all,
>
> #( multiline comment )# or (# multiline comment #)
> # single-line comment
>
> The above proposal using "#" is eye-pleasing to me too. However, I wonder
> how well it fits with, for example,
> <http://www.jtc1sc34.org/repository/0935.htm#dir-mergemap> URL with "#" in
> it.
I see no collision yet.
> It may be correctly parsed by a smart parser, but I would like to see
> correct coloring in my editor that has very simple rule for comments, not
> distinguishing "# in URL" and "# for comments".
With AsTMa= I stole myself away from that problem by having # always
followed by a blank to count as comment. And I hope most low-end
computers or editors nowadays understand regular expressions.
> For you information, X-Window (I am still using it actively)
> configuration files use "!" for comments.
Someone commented recently that my remark that this discussion is "so
1980" was inappropriate.... ;-) Well, maybe it wasn't.
http://en.wikipedia.org/wiki/X_windows#Origin_and_early_development
\rho
> -----Original Message-----
> From: sc34wg3-bounces at isotopicmaps.org
> [mailto:sc34wg3-bounces at isotopicmaps.org] On Behalf Of Lars Marius Garshol
> Sent: Wednesday, January 23, 2008 3:27 AM
> To: Discussion of ISO/IEC 13250 Topic Maps
> Subject: [sc34wg3] Comments on comments
>
>
> I think we can summarize the debate so far as follows:
> - we need both single-line and multi-line comments,
> - there's a general preference for nestable multi-line comments.
>
> Xuan is right that nestable comments mean CTM is no longer a regular
> language, and as far as I can recall this is the only thing that goes
> beyond that boundary. I don't think this really matters, though.
>
> There's nothing like a consensus on *what* syntax to use though. We
> have the following proposals:
>
> N0935:
> (: multiline comment :)
> # single-line comment
>
> Kyoto proposal:
> !( multiline comment )!
> ! single-line comment
>
> My proposal:
> #( multiline comment )# or (# multiline comment #)
> # single-line comment
> *and* change item identifier cryptic delimiter from '#' to '!'
>
> Personally, I much favour my own proposal. The single-line comment
> syntax is very widely used, and has the added advantage of forcing us
> to use something else for item identifiers (my proposal there is '!',
> or even not supporting it, but I don't really care).
>
> --Lars M.
> _______________________________________________
> sc34wg3 mailing list
> sc34wg3 at isotopicmaps.org
> http://www.isotopicmaps.org/mailman/listinfo/sc34wg3
>
> _______________________________________________
> sc34wg3 mailing list
> sc34wg3 at isotopicmaps.org
> http://www.isotopicmaps.org/mailman/listinfo/sc34wg3
>
--
And then he said: "You should read my blog." http://kill.devc.at/
More information about the sc34wg3
mailing list