Replies: 2 comments
-
Seems reasonable, but I am not 100% sure. We can look into it once the new parser is merged and stable. |
Beta Was this translation helpful? Give feedback.
0 replies
-
One important example with this system is:
I think that A related idea to this is explicit lambda capture, so that you can avoid using outer variables in inner functions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Very often we write a function that looks like this:
A common bug for these cases is that we accidentally use
e
where we should have usede1
ore2
. I want to prevent this kind of bug by removinge
from the environment when I match on it. I propose a new expressiondestruct
, which operates only on variables, and performs a match, but removes the scrutinee from the environment.Beta Was this translation helpful? Give feedback.
All reactions