[m-rev.] State variable syntax transformation
Ralph Becket
rafe at cs.mu.OZ.AU
Wed Feb 27 11:26:19 AEDT 2002
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.
- Ralph
--------------------------------------------------------------------------
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