[mercury-users] 15 problems I had learning (as much as I have...) about Mercury.
Nicholas Nethercote
njn at csse.unimelb.edu.au
Wed Feb 14 09:29:26 AEDT 2007
On Tue, 13 Feb 2007, Julian Fondren wrote:
>> 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.
I personally think DCG notation sucks and state variables should be used
everywhere.
Having said that, this is your code, and I think you should use whichever
style you like best.
Nick
--------------------------------------------------------------------------
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