4 ms·
Almost every single case of embedding I've encountered was buggy in some way. Explicit composition is much more reliable.
by dontlaugh 3y ago
Almost every single case of embedding I've encountered was buggy in some way.
Explicit composition is much more reliable.
- lamontcg 3y agoIf someone autogenerates one way or another all the delgation, then that's just as buggy as embedding. The presence of all the explicit composition in the codebase doesn't mean that anyone actually sat down and thought about it all.
- dontlaugh 3y agoAutogenerating delegation is bad for the same reason. Having to explicitly delegate in every single case forces you to think about it. Alternatively, it forces you to use the type system to make a better abstraction.
- lamontcg 3y ago> forces you to think about it forcing people to type something never forces them to think about it.