These slides describe the expression problem, but only mention the names of some solutions.
I found a good description of two solutions in Solving the Expression Problem in Haskell and Java. In Haskell, you can use typeclasses. In Java, you can use “object algebras” that implement “algebraic signatures”, a design pattern first explained in a 2012 paper.
These slides describe the expression problem, but only mention the names of some solutions.
I found a good description of two solutions in Solving the Expression Problem in Haskell and Java. In Haskell, you can use typeclasses. In Java, you can use “object algebras” that implement “algebraic signatures”, a design pattern first explained in a 2012 paper.