[mercury-users] query

Ralph Becket rafe at cs.mu.OZ.AU
Tue Mar 18 13:16:52 AEDT 2003

Peter Moulder, Tuesday, 18 March 2003:
> For a version that works with older versions of Mercury, replace the
> `main' line above with:
> main(S0, S) :- io__write_string("Hello, World!\n", S0, S).

The code in the book only has to work with the latest official release.
I'd rather use state variables here because the reader only has to
understand "ah, !IO means IO is performed."  Naming IO states explicitly
is really going to turn off a lot of readers before they've finished the
first chapter.

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