3 ms·
> you (and the compiler) will know and agree upon whether the same input will yield the same output What exactly does this mean? Haskell has plenty of non-dete
by bobbylarrybobby 2y ago
> you (and the compiler) will know and agree upon whether the same input will yield the same output
What exactly does this mean? Haskell has plenty of non-deterministic functions — everything involving IO, for instance. I know that IO is non-deterministic, but how is that expressed within the language?
- mrkeen 2y agoFunctions which use IO are tagged as such in the type system. IO can call non-IO, but not vice-versa.