Re:Haskell Typeclasses vs. C++ Classes
by tathougies on Tuesday October 17, 2017 @11:06AM
(#15491520)
All you need is a GADT which carries around the type class constraint.
Now, the class `cls a` is carried around with the value `a`. You can even go one step further and reify the vtable by itself.
which you can't really do in standard C++.
[ Parent
| on HN ]
There are no comments on this comment yet.