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

Re: IfExpr has a mandatory else clause

From: Michael Dyck <jmdyck@ibiblio.org>
Date: Sun, 25 Jan 2004 23:05:50 -0800
To: www-ql@w3.org
Message-id: <4014BC4E.EF054F52@ibiblio.org>

TAN Kuan Hui wrote:
> 
> Hi,
> 
> 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"
> ExprSingle
> 
> It seems that the above is deliberate by design, would appreciate any
> clarifications.

How would you resolve the ambiguity?

-Michael Dyck
Received on Monday, 26 January 2004 02:09:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:19 GMT