Proposal: Relax rules for 'pure'
Robert Jacques
sandford at jhu.edu
Thu Sep 23 05:47:36 PDT 2010
On Thu, 23 Sep 2010 02:51:28 -0400, Don <nospam at nospam.com> wrote:
> Jesse Phillips wrote:
>> Steven Schveighoffer Wrote:
>>> If we can define weakly pure functions this way, they most likely will
>>> be way more common than unpure functions. I know I avoid accessing
>>> global variables in most of my functions. Think about a range,
>>> almost all the methods in a range can be weakly pure. So that means
>>> you need to mark every function as pure.
>
> I think that's true. I/O is impure, but most other things are not.
The GC also impure :)
More information about the Digitalmars-d
mailing list