W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2008

[Bug 5332] [UPD] Parentheses around () or fn:error()

From: <bugzilla@wiggum.w3.org>
Date: Tue, 01 Jan 2008 19:04:08 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1J9mPI-0001CH-Bm@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5332





------- Comment #2 from mike@saxonica.com  2008-01-01 19:04 -------
Another observation: the following is allowed by the current rules:

if ($a=1) 
  then ()
else if ($a=2)
  then error()
else if ($a=3)
  then delete node $x
else ()

but the following simplification is disallowed:

if ($a=3)
  then delete node $x
else if ($a=2)
  then error()
else ()

The reason is that in the second case the "else" branch of the outer "if" is
not an updating expression and is not one of the two permitted exceptions (()
and error()).
Received on Tuesday, 1 January 2008 19:04:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:49 GMT