[mercury-users] false function

Michael Day mikeday at yeslogic.com
Wed Jul 30 11:19:32 AEST 2003

> I understand what the function would be used for, I'm just not convinced
> the situation arises frequently enough to justify adding something to
> the library.

Right, it's simple enough to define in your own code when you want it,

> It's not much harder to write your function as
> f(X) = Y :-
> 	     if bar(X) then Y = ...
> 	else if baz(Z) then Y = ...
> 	else                false.

Cute when they all fit on one line like that, but they don't. Simple code
with fewer redundant variables is easier to cut/paste/regex :)


YesLogic Prince prints XML!

mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list