[mercury-users] 15 problems I had learning (as much as I have...) about Mercury.

Julian Fondren ayrnieu at gmail.com
Tue Feb 13 18:19:24 AEDT 2007


On 2/12/07, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
> I'm back to extending the Mercury Tutorial book and your examples would
> form the basis of a very useful "Common errors and what to do about
> them" chapter.  Would you mind if I cribbed from your web site?

Not at all!  I think that's probably the best possible use for them.

> By the way, your examples use DCG notation to thread the IO state
> around.  This has been considered Bad Style for a long time now;
> state variables are the right tool for the job.  Reserve DCGs for
> writing parsers.

OK.  As even library/parser.m uses state variables instead of
DCG notation, I'll avoid them for now.

Thanks,
Julian
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list