4 ms·
Yep they desugar to dictionary-passing (vtable)..buuuut GHC is a helluva optimizing compiler and will often effectively make them static.
by whateveracct 3y ago
Yep they desugar to dictionary-passing (vtable)..buuuut GHC is a helluva optimizing compiler and will often effectively make them static.
- deredede 3y agoI mean, sure, you can optimize a lot of the common cases (C++ compilers do the same), but that doesn't make the dispatch static, semantically.
- whateveracct 3y agoIt's static dispatch when it's monomorphic, I'd say.