6 ms·
Indeed... in Haskell this can be implemented with a GADT and an evaluator which is really easy to express. Still useful to know the "pattern" regardless of OOP
by agentultra 7y ago
Indeed... in Haskell this can be implemented with a GADT and an evaluator which is really easy to express.
Still useful to know the "pattern" regardless of OOP cruft, Javascript prototypes, or Haskell data types.
- deleted 7y ago[deleted]