(: commenting out a (: comment :) may be confusing, but often helpful :) is a legal Comment, since balanced nesting of comments is allowed.
(from http://www.w3.org/TR/xquery/#parse-note-comments ) Software AG - Group Executive Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Arnd Zinnhardt, Mark Edwards, Dr. Wolfram Jost, Kamyar Niroumand, Darren Roos, Jonathan Smith, Ivo Totev Sitz/Registered office: Uhlandstra?e 12, 64297 Darmstadt, Germany, - Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Dr. Wolfram Jost, Arnd Zinnhardt http://www.softwareag.com/ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Sokolov Sent: Dienstag, 6. Dezember 2011 02:57 To: [email protected] Cc: [email protected]; [email protected]; [email protected] Subject: Re: [xquery-talk] why must one have something inside {} ? Yes, one might regret the inability to nest comments; single line comments in C-derived languages have the nice property that they could live inside block comments, which can be handy when you want to temporarily hide a block of code possibly containing comments; say when reformatting/restructuring a large piece of code, and working to get it to compile piece by piece. But nested comments would be superior still, although maybe a bit more irritating to parse. -Mike On 12/5/2011 8:18 PM, [email protected] wrote: > I guess the chances of getting an additional > "quick comment to the end of line character(s)" like # in perl. Or // in... > are slim too. One needs both (: and :) ... Barfolomew! _______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
