W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2015

[Bug 29263] [XQ30] if expression: optional else branch?

From: <bugzilla@jessica.w3.org>
Date: Fri, 06 Nov 2015 16:55:30 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29263-523-Xa9hsRpMti@http.www.w3.org/Bugs/Public/>

--- Comment #8 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
This was raised against XQ31, but sounds more like an XP31 bug to me?

Anyway, fwiw, I've often stared cluelessly at a complex expression with a
syntax error, only to find out at some point that I forgot the redundant "else

I think it is a good suggestion, it has no backward compatibility issues and
the language production changes seem unambiguous. I'm sure many people will be
grateful for being able to omit the mandatory 7 keystrokes. Whether its really
small enough to warrant inclusion at this stage I don't know.

Conversely, it makes me wonder why in XSLT there's an xsl:if *without* an
xsl:else, it doesn't even exist (but we have xsl:choose as a clumsy workaround,
which XPath does not have).

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 6 November 2015 16:55:33 UTC

This archive was generated by hypermail 2.3.1 : Friday, 6 November 2015 16:55:33 UTC