4 ms·
The term "C with classes" is almost used as an insult in some circles. I wonder if "C++ without classes" would be a better idea.
by 1wd 10y ago
The term "C with classes" is almost used as an insult in some circles. I wonder if "C++ without classes" would be a better idea.
- CyberDildonics 10y agoC++ without polymorphism or inheritance is how the people that I think are worth listening to seem to do things.
- 72deluxe 10y agoHow 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.
- gpderetta 10y agowithout runtime polymorphism. /pedantic++