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

<- View Parent
steersman2484@sh.itjust.works ⁨9⁩ ⁨months⁩ ago

I’m currently learning functional languages and have only limited knowledge, but from what I’ve read now you are right. Throwing exceptions is pure, but catching them is impure.

In this case I guess the printLine function can throw an exception therefore the calling function must be declared with Exception?

source
Sort:hotnewtop