To help LDC/GDC
David Nadlinger
see at klickverbot.at
Tue Apr 9 03:42:49 PDT 2013
On Tuesday, 9 April 2013 at 10:28:16 UTC, Manu wrote:
> There's nothing 'pure' about a function that has side effects.
> It's a
> totally different concept, and should be named appropriately.
It's not totally different – the possible side effects are still
very localized and controllable by the *caller* (not the callee).
But yes, the name is a bit unfortunate, and has historical
reasons.
As to not repeat myself, I'll just link to an article I wrote a
couple of months ago:
http://klickverbot.at/blog/2012/05/purity-in-d/#weak_purity_allows_for_stronger_guarantees
David
More information about the Digitalmars-d
mailing list