Disallow side effects in assert
Daniel Murphy
yebbliesnospam at gmail.com
Mon Feb 3 09:30:05 PST 2014
"bearophile" wrote in message news:aifyouczfuqhdgubpfsw at forum.dlang.org...
> How many impure functions do you call in your asserts?
> In D we have a purity system, and now it works well enough. It's a good
> idea to actually start use it, for asserts, contracts, parallelism, etc.
Do you really want to force all codebases to 'pure'ify all their functions?
A function call in an assert might be a red flag, but it certainly isn't a
bug.
More information about the Digitalmars-d
mailing list