[xquery-talk] let's comment out a line in XQuery

David Lee dlee at calldei.com
Thu Dec 20 08:25:33 PST 2012

Sorry, you need to make a  bit  more room in your brain.
The proper syntax is context specific.  And I made a mistake in my example.
double bad :)

inside an element constructor you need this:


other places you use

   (: comment :)
but realize that produces nothing, not the empty sequence so some places it wont work and you might need 


its actually quite easy once you learn the syntax.

David A. Lee
dlee at calldei.com

-----Original Message-----
From: jidanni at jidanni.org [mailto:jidanni at jidanni.org] 
Sent: Thursday, December 20, 2012 11:12 AM
To: David Lee
Cc: ms at basex.org; talk at x-query.com
Subject: Re: [xquery-talk] let's comment out a line in XQuery

OK. In my brain (which only has room for one comment syntax per
language) I will now try to remember
{(: comment :)()}
as the REAL XQuery comment syntax (the one that is guaranteed not to
fail, the one that gets even tough stains out),
and any simplifications thereof e.g.,
(: comment :)
as mere shortcuts that will sometimes fail. I hope that is fair,
assuming I only want to remember one comment syntax. (No I don't want to
use <!-- comment --> as that ends up in the laundry.)

More information about the talk mailing list