2 ms·
I find simple loops over simple data more understandable than inheritance chains and pointer chasing.
by ehaliewicz2 3y ago
I find simple loops over simple data more understandable than inheritance chains and pointer chasing.
- TillE 3y agoIf the stuff you're doing allows a design where you can just loop over POD, sure, that's the ideal. But lots of stuff isn't that simple, and you end up messily reinventing inheritance with a lot of switches and if statements.
- morelisp 3y agoMost of the time you can solve this by knowing shit and thinking harder.