W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2006

Re: A side-effect example

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Thu, 27 Apr 2006 15:58:25 +0100 (BST)
To: Norman Walsh <Norman.Walsh@Sun.COM>, public-xml-processing-model-wg@w3.org
Message-Id: <20060427145825.5C0BE5DAE66@macintosh.inf.ed.ac.uk>

> 2. Side-effect free and non-functional. Such components have no detectable
>    effect on the world except for the inputs they consume and the
>    outputs they produce, but given the same inputs, they may produce
>    different outputs.

One way to look at non-functional components is to say that they have
a hidden input, such as something that produces the time for a
timestamp.  The parallel with side-effects - which are hidden outputs -
is then clear.

-- Richard
Received on Thursday, 27 April 2006 14:58:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:47 GMT