You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to write try-finally blocks like so:
try {
...
}
finally {
...
}
but this is not in the syntax of Rascal.
Example usage:
voidjob(strlabel, void (void () step) block) {
try {
jobStart(label);
block(() { jobStep(label, label, work=1);});
}
catchx: {
throwx; // this rethrow erases the location of the original, also it doesn't add functionality to the code.
}
finally {
jobEnd(label); // this is essential. I need to do this also when exceptions pop the stack.
}
}
The text was updated successfully, but these errors were encountered:
Describe the bug
I would like to be able to write try-finally blocks like so:
but this is not in the syntax of Rascal.
Example usage:
The text was updated successfully, but these errors were encountered: