Re: IfExpr has a mandatory else clause

Jonathan Robie <[email protected]>
Newsgroups gmane.comp.web.query-languages
Message-ID <6.0.0.22.2.20040127080100.02c967e8@ncmail.datadirect-technologies.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.