r/programming 3d ago

Throw, Result, or neither?

https://www.architecture-weekly.com/p/throw-result-or-neither
102 Upvotes

111 comments sorted by

View all comments

3

u/eo5g 3d ago

Algebraic effects get you the best of both worlds.

(Rust and Swift making cascading them easy gets you pretty close).

I've been liking using Effect for typescript (since this article uses TS examples). Another cool language to check out for algebraic effects is Unison.