Benedek Szilvasy
syntax
( try body...+catch-clause...maybe-finally-clause)
If an exception is raise d, then attempt to match one of the pats in the catch clauses, returning the result of its body. If none of them match, the exception is re-raised.
If there is a finally clause present, it will be executed when exiting the body, through a normal return, uncaught exception or a continuation.
syntax
( catch patbody...+)
syntax
( finally body...+)
Caught: raised string
"cons: arity mismatch;\n the expected number of arguments does not match the given number\nexpected: 2\ngiven: 1"
Escaping
Escaped
syntax
( try-with ([idval]...)body...+)
Like let , bind ids to vals in body. vals are evaluated with current-custodian set to a new custodian created with make-custodian . When the expression returns, the custodian is shutdown with custodian-shutdown-all in a finally clause.
b))x
#f
syntax
( try-with* ([idval]...)body...+)
Like try-with , but the binding of each id is made available in subsequent vals, as in let* . All vals are evaluated with the same custodian.