Throw and catch


#1

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?


#2

It’s bad practice. You should separate parts out into functions and use return if you want to do this. Or raise an exception.


#3

Tries to dislike the post


#4

for a more objective reason: it’d probably be impossible to typecheck. It’s basically goto.