(side-)effects and ...

Tim Chase python.list at tim.thechases.com
Sun Jul 5 22:37:56 CEST 2015


On 2015-07-05 15:36, Tim Chase wrote:
> On 2015-07-05 20:29, Stefan Ram wrote:
> >   But why do we not have a common and well-known term for
> >   the counterpart, that something does not modify the state
> >   of the world, but that the state of the world does 
> >   influence the value (behaviour) of a call such as
> >   »datetime.datetime.now().time()«?
> 
> I believe the term is "idempotent"
> 
> https://en.wikipedia.org/wiki/Idempotent_function#Computer_science_meaning

Though I've also heard the term "pure function" for a similar meaning.

https://en.wikipedia.org/wiki/Pure_function

-tkc


More information about the Python-list mailing list