Regarding the ruby example, thinking about the performance of such a (non-)feature makes my head spin. Not to mention the possibility of side-effects wrecking the program state and the complexity of debugging code like that without making Rubys error handling aware of such a construct. All in all, this seems like a fun hack, but a catastrophically bad idea in practice.
https://bugs.ruby-lang.org/issues/10548
It looks like it's still included at the moment, though: