[m-rev.] Minor coding standards update
Ralph Becket
rafe at cs.mu.OZ.AU
Fri Mar 4 15:03:11 AEDT 2005
Estimated hours taken: 0.1
Branches: main
compiler/notes/coding_standards.html:
Added a comment regarding the use of DCG notation and state
variables, particularly with respect to IO.
Index: compiler/notes/coding_standards.html
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/notes/coding_standards.html,v
retrieving revision 1.14
diff -u -r1.14 coding_standards.html
--- compiler/notes/coding_standards.html 14 Oct 2004 04:31:32 -0000 1.14
+++ compiler/notes/coding_standards.html 4 Mar 2005 03:49:16 -0000
@@ -118,6 +118,13 @@
(If you really must have a fixed limit, include detailed documentation
explaining why it was so hard to avoid.)
+<p>
+
+Only use DCG notation for parsing, not for threading implicit arguments.
+
+Use state variables for threading the IO state etc. The conventional IO
+state variable name is <code>!IO</code>.
+
<h2> Error Handling </h2>
<p>
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list