3 ms·
Ok sure but I was meaning in general. Anyway pass in (repeat 0) and you get a side effect. :-)
by bbcbasic 10y ago
Ok sure but I was meaning in general.
Anyway pass in (repeat 0) and you get a side effect. :-)
- masklinn 10y ago> Ok sure but I was meaning in general. So was I, the article denotes that JS functions can be impure because values carry a "purity stigma" (the value itself can embed impure operations in its manipulation or evaluation). > Anyway pass in (repeat 0) and you get a side effect. :-) That's a good point, laziness also carries a "purity stigma". You could actually sneak in unsafePerformIO with an unfold or a lazy list construction.
- tel 10y agoHaskell is well-known not to be pure in supporting non-terminating computation.
- lmm 10y agoSure, that's an issue with Haskell - much better to use Idris.