4 ms·
Purely functional languages come with the promise that a sufficiently advanced compiler will see through all that monadic functional cruft and run your code as
by aaaaaaaaaab 8y ago
Purely functional languages come with the promise that a sufficiently advanced compiler will see through all that monadic functional cruft and run your code as well or even better than it would if written in an imperative language.
As we don’t yet have such an advanced compiler, impure hacks like `par` start seeping through the cracks.
- kccqzy 8y agoWhat do you mean impure hacks like `par`? It's a parallelism primitive. You mean `seq`? In either case it's not impure. It's just a primitive that can't be expressed in the language itself. It's still referentially transparent (which is what people mean by pure).