So, most of all familiar with throw
and catch
thing in Ruby. It’s sometimes useful to be able to break away from a deep-leveled stack. And raising a error is quite expensive. Why isn’t it in the language yet?
1 Like
It’s bad practice. You should separate parts out into functions and use return
if you want to do this. Or raise an exception.
1 Like
Tries to dislike the post
1 Like
for a more objective reason: it’d probably be impossible to typecheck. It’s basically goto
.
4 Likes