Skip to content
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

Make MatchFailure a subtype of Exception #30

Merged
merged 2 commits into from
Jul 5, 2022
Merged

Conversation

charnik
Copy link
Contributor

@charnik charnik commented Jul 5, 2022

The @match macro can throw an object of type MatchFailure. It'd make sense to let this type be a subtype of Exception so that it can be effortlessly caught in try-catch expressions.

@charnik charnik requested a review from NHDaly July 5, 2022 15:24
@charnik
Copy link
Contributor Author

charnik commented Jul 5, 2022

@NHDaly Please let me know if this change should be reported at the end of the README.md file as yet another difference between Rematch.jl and Match.jl.

@charnik charnik requested a review from nystrom July 5, 2022 15:34
Copy link
Member

@nystrom nystrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@NHDaly
Copy link
Member

NHDaly commented Jul 5, 2022

🤷 i don't know, i don't think you need to call this out in the README unless you want to.

Also, 👍 @nystrom is the real owner of this package, not me. Thanks for the review Nate :)

@nystrom
Copy link
Member

nystrom commented Jul 5, 2022

Yeah, no need for the README change. Thanks @NHDaly

@charnik
Copy link
Contributor Author

charnik commented Jul 5, 2022

Thank you very much both of you for your prompt reviews!

@charnik charnik merged commit 06f0bb8 into master Jul 5, 2022
@charnik charnik deleted the bn-MatchFailure-type branch July 5, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants