Memory allocation purity

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed May 14 23:24:29 PDT 2014


Ola Fosheim Grøstad:

> Pure in D seems pointless to me.

If you start using pure in D you see it's like const: it allows 
you to remove certain kinds of your mistakes from the code, and 
it makes it more easy to reason about the code.

You can use mutability inside a strongly pure function. This is a 
very good.

Bye,
bearophile


More information about the Digitalmars-d mailing list