replib icon indicating copy to clipboard operation
replib copied to clipboard

Variable capture when substituting in patterns

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

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

GoogleCodeExporter avatar Mar 14 '15 21:03 GoogleCodeExporter