Re: IfExpr has a mandatory else clause

At 04:49 AM 1/26/2004, TAN Kuan Hui wrote:
>So is grammar ambiguity the reason that IfExpr has a
>mandatory else clause ?

Yes.

>Are there other design considerations ?

Not really.

Well, there is one justification that makes some sense. This is a 
functional language, every expression evaluates to something, and if the 
conditional expression evaluates to the empty sequence, there is some 
virtue to saying so explicitly. That's not much of a reason, but it will do 
as a post-hoc rationalization ;->

But resolving the ambiguity is important. For what it's worth, every entry 
in this thread is reminiscent of discussions we had at length within the 
Working Group. These are reasonable positions, but not new ones.

Jonathan  

Received on Tuesday, 27 January 2004 21:30:58 UTC