Files
hakorune/apps/tests/macro/exception/postfix_catch.hako

10 lines
185 B
Plaintext

// Phase 1 sugar: postfix_catch(expr, "Error", fn(e){ body })
function do_work(args) {
return 0
}
function main(args) {
postfix_catch(do_work(args), "Error", fn(e){ print(e) })
}