-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow multiple catch blocks #1075
Comments
I assume the semantics are that if none of the catch clauses match, the handler is skipped and we go to the next one down the stack? |
Yes, exactly. |
I like this and it fits the multiple dispatch style of programming nicely. |
Can now be done with |
One ought to be able to write something like this:
Although it needn't actually be implemented by creating a generic function, this should probably emulate the behavior of dispatch, implying that clause order doesn't matter.
The text was updated successfully, but these errors were encountered: