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

Variable capture when substituting in Rebind patterns #6

Open
lambdageek opened this issue Oct 13, 2014 · 1 comment
Open

Variable capture when substituting in Rebind patterns #6

lambdageek opened this issue Oct 13, 2014 · 1 comment
Labels

Comments

@lambdageek
Copy link
Owner

Migrated from unbound issue tracker - issue 25

Should be able to detect & fail when capture occurs while substituting in patterns. For example,

subst (Rebind x y) (Var x)

will produce an invalid pattern. The variable x will still be a free variable, even though the pattern binds > variables of that name. This behavior should be caught and an appropriate error message given.

May also be worth having a Maybe version of subst.

@lambdageek lambdageek added the bug label Oct 13, 2014
@lambdageek
Copy link
Owner Author

First step is to create a real test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant