'with' bug?
bearophile
bearophileHUGS at lycos.com
Sat Nov 3 13:29:12 PDT 2012
Faux Amis:
> Care to elaborate on that?
They share most of the problems of global variables. While not
evil, it's better to avoid module-level mutables. This makes the
code more testable, simpler to understand, less bug prone, and
makes functions more usable for other purposes. In D there the
attribute "pure" is present also to enforce such better coding
style.
Bye,
bearophile
More information about the Digitalmars-d
mailing list