3 ms·
A strongly typed version of CLOS generic functions would look a lot like Haskell typeclasses, right?
by cousin_it 12y ago
A strongly typed version of CLOS generic functions would look a lot like Haskell typeclasses, right?
- PuercoPop 12y agoIIUC, the primary method of the standard-method-combination look's a lot like Haskell Typeclasses. The standard-method-combination has a middleware-like dispatch as shown in here [0]. CL comes with other method-combinations like +, append and you can also define new method combinations. [0]: https://commons.wikimedia.org/wiki/File:Method-combination.png https://commons.wikimedia.org/wiki/File:Method-combination.p...
- cousin_it 12y agoAh, I forgot about before/after/around. That makes sense, thanks!