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 pattern using bound variables #137

Closed
yoshihiro503 opened this issue Jan 18, 2019 · 0 comments · Fixed by #138
Closed

Support pattern using bound variables #137

yoshihiro503 opened this issue Jan 18, 2019 · 0 comments · Fixed by #138
Milestone

Comments

@yoshihiro503
Copy link
Contributor

yoshihiro503 commented Jan 18, 2019

In Erlang, the pattern using bound variables work as like constant pattern.
For example:

X = 1,
case 123 of
  X -> X + 1
end.

** exception error: no case clause matching 123

For this, we must consider the second binding of a already bound variable.

The case of shadowing variables must also be considered, but it is a different PR #135.

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 a pull request may close this issue.

1 participant