[m-rev.] Report state variable syntax on the news web page

Ralph Becket rafe at cs.mu.OZ.AU
Thu Jul 11 14:57:40 AEST 2002


Estimated hours taken: 0.2
Branches: main

news/newsdb.inc:
	Report the addition of state variable syntax to the language.

Index: news/newsdb.inc
===================================================================
RCS file: /home/mercury1/repository/w3/news/newsdb.inc,v
retrieving revision 1.65
diff -u -r1.65 newsdb.inc
--- news/newsdb.inc	12 Nov 2001 11:08:18 -0000	1.65
+++ news/newsdb.inc	11 Jul 2002 04:54:54 -0000
@@ -21,6 +21,23 @@
 */
 
 $newsdb = array(
+"10 July 2001" => array("State Variables",
+
+"We've added some extra syntax to the language to support programming
+with `state variables'.  State variables are intended to make it easier
+to deal with sequences of values.  For example, where previously one
+would have to name each value in a sequence X0, X1, X2, ..., X, now it
+is possible to use a state variable !X, which will be translated into 
+ordinary, non-state variable Mercury, automatically naming the sequence
+values.  !X stands for two arguments, !.X and !:X, where !.X is
+interpreted as the \"current\" sequence value under consideration and !:X
+is taken as the \"next\" sequence value.  State variable syntax should be
+used in preference to DCG notation for threading the IO state in future.
+See the \"State variables\" section of the \"Syntax\" chapter of the
+<A HREF=\"$ref_man_latest\">Mercury Language Reference Manual</A> for
+more details."
+),
+
 "13 November 2001" => array("Unification expressions",
 
 "We've added a new kind of expression to the language.
--------------------------------------------------------------------------
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