[m-rev.] State variable syntax transformation
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Feb 27 14:48:28 AEDT 2002
On 27-Feb-2002, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> Fergus Henderson, Tuesday, 26 February 2002:
> > >
> > > ( if we_have_a_problem(X) then throw_an_exception(X) )
> >
> > Code like this should be avoided, since it will get entirely optimized away
> > if you compile with `--no-fully-strict'.
> >
> > Furthermore extending the syntax in this way would be confusing for
> > Prolog programmers, because of Prolog's opposite semantics for
> > if-then without else.
>
> Okay, I've added the "else true" arm to that example.
That addresses my second point, but not my first.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list