-
Consider the following
Now |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The simplest work around currently is to capture the external variable in a let binding before it's shadowed:
It can sometimes become a bit verbose. Possible future solutions could include special keywords like |
Beta Was this translation helpful? Give feedback.
The simplest work around currently is to capture the external variable in a let binding before it's shadowed:
It can sometimes become a bit verbose. Possible future solutions could include special keywords like
self
/super
. Alternatively, anonrec
keyword to specify that we want some records to not be recursive could also be a solution.