[mercury-users] Mercury applications, AI, backtracking

David Glen JEFFERY dgj at cs.mu.OZ.AU
Mon Sep 14 14:41:20 AEST 1998


On 14-Sep-1998, Don Smith <dsmith at cs.waikato.ac.nz> wrote:
> Hi,
> 
> I am wondering: is it reasonable to expect Mercury to succeed as a _mainstream_
> programming language when the vast majority of conventional applications
> would seem to involve little or no backtracking? (But see below.)
> 
> Sure, Mercury has good language support for expressing deterministic code,
> and it tries to pay for nondeterminism only where it's really needed.
> But if my application is quite deterministic (as the vast majority of 
> conventional applications are), then why would I choose Mercury over, 
> say, Haskell or Clean? 

I feel that it is easier to express complex data flow in Mercury than it is
in functional languages. In particular, returning multiple values from a
procedure doesn't need to involve tupling/untupling. For the beginning
programmer, this is a significant bonus, IMHO.


dgj
-- 
David Jeffery (dgj at cs.mu.oz.au) |  Marge: Did you just call everyone "chicken"?
PhD student,                    |  Homer: Noooo.  I swear on this Bible!
Department of Computer Science  |  Marge: That's not a Bible; that's a book of
University of Melbourne         |         carpet samples!
Australia                       |  Homer: Ooooh... Fuzzy.




More information about the users mailing list