buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Catch clauses should be blocks

Open giann opened this issue 3 years ago • 0 comments

Right now they are functions so we can't do:

fun hello() > bool {
    willFail() catch {
        | here we return from this catch clause instead of returning from the enclosing function
        default -> return false;
    }

    return true;
}

giann avatar Mar 25 '22 15:03 giann