Resolved a tricky scoping issue in my #OCaml interpreter! 🎉
The interpreter uses a stack of hashtables to handle variables in different scopes. But that alone isn't enough, without knowing the "distance" to a variable, the interpreter can easily pick the wrong one if a local shadows a global.
1/
add a skeleton here at some point
29 days ago