Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you considered using Ruby's throw/catch instead of exceptions? I did that for Atomy's condition system[1]. They worked great because you can just use the restart names for the throw/catch tags.

[1]: https://github.com/vito/atomy/blob/master/kernel/condition.a...



I might have considered throw and catch as I wrote the library, but right now, I cannot think of any good reason why I haven't used it. Will check that again. Thanks for the suggestion.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: