3 ms·
The combination of panic and recover is exactly like raise/throw and catch. One could even reasonably argue that both are both just a single specialized call/cc
by kccqzy 8y ago
The combination of panic and recover is exactly like raise/throw and catch. One could even reasonably argue that both are both just a single specialized call/cc (You pass call/cc a function to execute, which receives an argument that allows immediate exit to the enclosing scope.) It's basically a kind of control flow operator. So what's the novelty here?