[xquery-talk] comment out all the rest of the program

Liam R E Quin liam at w3.org
Thu Mar 8 19:21:20 PST 2012


On Fri, 2012-03-09 at 10:21 +0800, jidanni at jidanni.org wrote:

> You see I sadly miss the ability to add
> # to comment one line
> =bla to comment all the rest
> without needing to painstakingly add the matching :).

I haven't often used =bla in Perl.

You can kinda comment out a chunk using an element constructor, but it
does still get parsed even if the value is not used,
<ignore-this> . . .
 . . .
</ignore-this>[false()]

Query isn't really a line-oriented language, so comment-to-end-of-line
seems likely to cause too many surprises, I'm not sure.


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/



More information about the talk mailing list