3 ms·
It is not even OO, as the Haskell example shows. But I understand completely the mindset. If you think that you can implement your solution with full static di
by gpderetta 6y ago
It is not even OO, as the Haskell example shows.
But I understand completely the mindset. If you think that you can implement your solution with full static dispatching and no pointer indirection, having to add these "ugly workarounds" feels like surrendering.
But there is a continuum between full static dispatch and boxing and indirection everywhere. Adding a few carefully chosen "dynamic joints" can add a lot of runtime flexibility at a minimal cost.