On 3 February 2014 17:00, bearophile <[email protected]> wrote: > Daniel Murphy: > > >> Enough to tell it _might_ have a side effect, not enough to know it >> _will_. The number of false positives would make it near useless. > > > How many impure functions do you call in your asserts?
Rephrase to 'How many *functions* do you call in your asserts?' If a function has a side effect (or returns), I'd have thought that typically people want to store that value first, then test it using assert(). Regards Iain.
