Going through the book Crafting intperpreters. But doing the Java parts in OCaml (I later plan to do the C parts in Rust) to make sure I understand the concepts and don't copy code without understanding.
We are implementing the visitor pattern for expressions. And I was like.
I know this, I'll use tagless final style
And I accidentally made it typesafe by getting carried away.
I'll have to revert 'a repr to just repr. But made a commit anyway to preserve it like this












