3 ms·
I guess I should clarify and say "What sort of a cache would use IO and make a pure function impure?". Even if the cache is so large that it doesn't fit in memo
by asQuirreL 11y ago
I guess I should clarify and say "What sort of a cache would use IO and make a pure function impure?". Even if the cache is so large that it doesn't fit in memory, its behaviour would still be referentially transparent.
- Veedrac 11y agoThat's only if you don't count the IO itself as a side-effect. Does a language like Haskell give you the choice? If so,would it be idiomatic?