-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
The following syntax should be possible
try {
foo()
} catch SomeException {
// catches only exceptions of type SomeException, doesn't provide a binding
} catch OtherException as exc {
// catches only exceptions of type OtherException, provides a binding (exc)
} catch exc {
// catches all types of exceptions, provides a binding (exc)
} catch {
// catches all types of exceptions, doesn't provide a binding
}Could use the instanceof operation described in #64 to perform a typecheck at the beginning of the exception handler, then dispatch to correct handler.
Reactions are currently unavailable