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

RE: [XQuery] IfExpr should allow an optional else clause

From: Jonathan Robie <jonathan.robie@datadirect.com>
Date: Wed, 28 Jan 2004 05:37:14 -0500
Message-Id: <6.0.0.22.2.20040128053552.026fab50@ncmail.datadirect-technologies.com>
To: "Kay, Michael" <Michael.Kay@softwareag.com>, "TAN Kuan Hui" <kuanhui@xemantics.com>, <public-qt-comments@w3.org>

At 06:55 AM 1/27/2004, Kay, Michael wrote:
>(For my own part, I would have much prefered a syntax in which
>expressions were self-closing, e.g.
>
>if (Expr) then Expr [else Expr] fi
>
>But I lost that battle. I don't think it would be a good idea to make
>"else" optional unless we introduce a mandatory closer to remove the
>ambiguity.)

For just this one expression, I agree - but if we went that way, we should 
do the same for other expression types, including FLWOR expressions. 
Working this through...it seemed to make the language more cumbersome.

Jonathan 
Received on Wednesday, 28 January 2004 05:39:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:04 GMT