Y
Hacker News
new
|
ask
|
show
|
jobs
by
brandonbloom
4640 days ago
I'll agree it's best to avoid fully open unions when you can, but some (super useful) things truly don't work that way. Check out
http://okmij.org/ftp/Computation/monads.html#ExtensibleDS
for a cool example.
1 comments
tel
4640 days ago
I always think of Control.Exception as the poster child for open unions.
link
brandonbloom
4640 days ago
Perfect, since exceptions are a subset of effects! Check out
http://math.andrej.com/eff/
and its literature.
link