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

Support catch expr #250

Merged
merged 4 commits into from
Jun 3, 2019
Merged

Support catch expr #250

merged 4 commits into from
Jun 3, 2019

Conversation

yoshihiro503
Copy link
Contributor

@yoshihiro503 yoshihiro503 commented May 23, 2019

What are catch expressions in Erlang

see http://erlang.org/doc/reference_manual/expressions.html#catch-and-throw

Derivation rules

Γ |- e : τ, C
-------------------------------[CATCH]
Γ |- catch e : any(), C

Generated PDF

https://1275-87309195-gh.circle-artifacts.com/0/home/opam/fialyzer/docs/derivation-rules.pdf
(via https://circleci.com/gh/dwango/fialyzer/1275#artifacts/containers/0 )

Don't we need to support throw expressions?

throw is a BIF(built-in function). see #196

@yoshihiro503 yoshihiro503 changed the title Support catch expr [WIP] Support catch expr May 29, 2019
@yoshihiro503 yoshihiro503 changed the title [WIP] Support catch expr Support catch expr May 30, 2019
@yoshihiro503 yoshihiro503 merged commit 5a8dd17 into master Jun 3, 2019
@yoshihiro503 yoshihiro503 deleted the feature/catch_expr branch June 3, 2019 12:37
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.

2 participants