Hacker News new | ask | show | jobs
by hutao 139 days ago
I'd never heard of "resumable exceptions" before, so I searched them up [1][2]. Is this another name for the language feature called "effect handlers" in OCaml 5?

[1] https://osa1.net/posts/2024-11-04-resumable-exceptions.html

[2] https://softwareengineering.stackexchange.com/questions/8033...

1 comments

Yes, afaiu at least, effects and resumable exceptions are nearly the same, and you can implement one with the other.