3 ms·
All of that having been said... If you're talking about Rust, I can't comment directly because I haven't used Rust, but I've totally used Go's panic / recover
by shadowgovt 7y ago
All of that having been said...
If you're talking about Rust, I can't comment directly because I haven't used Rust, but I've totally used Go's panic / recover to implement "return" and "break loop" in a language interpreter.
I should really rewrite that thing to do something more sane like bundle up a continuation state to return to, but I was feeling lazy. ;)