Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93512 > unrolled thread

Re: (side-)effects and ...

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-07-05 19:12 -0400
Last post2015-07-05 19:12 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: (side-)effects and ... Terry Reedy <tjreedy@udel.edu> - 2015-07-05 19:12 -0400

#93512 — Re: (side-)effects and ...

FromTerry Reedy <tjreedy@udel.edu>
Date2015-07-05 19:12 -0400
SubjectRe: (side-)effects and ...
Message-ID<mailman.308.1436137983.3674.python-list@python.org>
On 7/5/2015 4:29 PM, Stefan Ram wrote:

>    And this is the intention of my post: Maybe there is such
>    a term, and I just missed to learn it so far? So,
>    do you know a term for the phenomenon that can be found
>    in Python but not in mathematics and consists in the state
>    of the world influencing the value of an expressions?

non-determinate
state-dependent

In mathematics, 'pure' functions defined in terms of named functions, 
such as

def f(x): return exp(sin(2*pi*x) + cos(2*pi*x))

are actually namespace dependent, but this is not counted as the local 
namespace (which here must contain exp, pi, sin, and cos) is considered 
to be write-once, read-forever.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web