Tree traversals with lenses #1324
janmasrovira
started this conversation in
General
Replies: 0 comments 1 reply
-
Trying Traversals in #188 |
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
-
The following blog shows how lenses can be used as a tool for generic traversals to tree structures.
https://www.michaelpj.com/blog/2022/06/12/lenses-for-tree-traversals-redux.html
Currently the codebase of MiniJuvix has a few places that could benefit from this, mainly substitutions (in both expressions and types in MicroJuvix). It would be worth to explore if using lenses could make the code more elegant and easier to maintain.
We should post the findings (positive or negative) in this issue.
Beta Was this translation helpful? Give feedback.
All reactions