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

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 UTC