3 ms·
How would that be a good idea? I don't understand how I could write effective software without polymorphism or inheritance, other than in tiny tiny applications
by 72deluxe 10y ago
How would that be a good idea? I don't understand how I could write effective software without polymorphism or inheritance, other than in tiny tiny applications.
- psyc 10y agoInheritance is syntactic sugar for composition. But, I think of it as reverse-SS, because I find composition much more readable.
- sidlls 10y agoI've written entire components for networked and multiplayer modes for games, and an algorithmic trading system that uses ML in C++ using just structs, unions, templates, functions and composition (no polymorphism or inheritance).
- CyberDildonics 10y agoThink about this: what does it give you besides generic execution and data when the size of the data varies? Templates already let you build generic data structures and algorithms when the size of the data on doesn't vary.