W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2004

IfExpr has a mandatory else clause

From: TAN Kuan Hui <kuanhui@xemantics.com>
Date: Mon, 26 Jan 2004 13:49:51 +0800
Message-ID: <000801c3e3d0$399cb5a0$4445bada@pinecone>
To: <www-ql@w3.org>


I am puzzled as to why the "else" clause must be made mandatory
in the IfExpr ? Aside from plausible grammar ambiguity which IMO can
be easily resolved, the production should not make "else" mandatory
in every ifExpr.

[54]   IfExpr   ::=   <"if" "("> Expr ")" "then" ExprSingle "else"

It seems that the above is deliberate by design, would appreciate any

Kuan Hui
Received on Monday, 26 January 2004 00:49:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:16 UTC