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
To: public-qt-comments@w3.org
Message-Id: <E1J9mPI-0001CH-Bm@wiggum.w3.org>


------- 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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:35 UTC