gottlobflegel
Joined 4 years ago
Karma
7
Submissions
9
Member since
Aug 10
Joined 4 years ago
Sometimes I think that I keep using nix only because of sunken cost fallacy and I should just switch to guix...
enum Term { Bool(bool), Not(Box<Term>), ... }
that your code simply does not typecheck. `Not` expects a `Box<Term>`, not a `Value`.
It's also worth noting that one would probably want to consider something like
Not(Not(Bool(true)))
a valid term, which your implementation wouldn't.
Yet it is the actual behaviour in the stdlib Prelude.