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 patterns #25

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Variable capture when substituting in patterns #25

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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.



Original issue reported on code.google.com by stephanie.weirich on 24 Apr 2013 at 6:56

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

No branches or pull requests

1 participant