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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29263

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