I think the name try_catch is kind of confusing, especially if we really want to catch we would have to do something like:
try{
try_catch( []{
// whatever unsafe C code
} )
} catch( ... ){
}
What try_catch really does is sandbox the C code so that it does not longjump too far.
So perhaps we should call it safe or sandbox or something.
I think the name
try_catchis kind of confusing, especially if we really want to catch we would have to do something like:What
try_catchreally does is sandbox the C code so that it does not longjump too far.So perhaps we should call it
safeorsandboxor something.