Comment on Unison | A friendly, statically-typed, functional programming language from the future · Unison programming language

<- View Parent
robinm@programming.dev ⁨10⁩ ⁨months⁩ ago

I would even have said that both throwing and catching should be pure, just like returning an error value/handling should be pure, but the reason for the throw/returning error itself is impure. Like if you throw and ioerror it’s only after doing the impure io call, and the rest of the error reporting/handling itself can be pure.

source
Sort:hotnewtop