4 ms·
automatic code generation would be a way to do it without inheritance and not manually needing to implemenet all 20+ methods.
by aurelwu 7y ago
automatic code generation would be a way to do it without inheritance and not manually needing to implemenet all 20+ methods.
- klntsky 7y agoYes, but you still need to create a code generator first. If your language of choice allows to do it nicely.
- nradov 7y agoCode generation tends to result in bloated binaries and excessive runtime memory consumption (unless your compiler is especially clever about optimizing out the redundancies).
- marcosdumay 7y agoAutomatic code generation is an incredibly effective problem factory.