3 ms·
That isn't "bad OOP". It's how you do non-trivial things in C. Got a pointer to various things and need dynamic dispatch to avoid a god function switch statemen
by kevin_thibedeau 7y ago
That isn't "bad OOP". It's how you do non-trivial things in C. Got a pointer to various things and need dynamic dispatch to avoid a god function switch statement? Bang! You've got OOP.
- IggleSniggle 7y agoYou can simplify a god function switch statement by using goto lines. Cut out the middleman!
- qubex 7y agoAnd remember kids: you don’t need a bunch of gotos and printfs because you can use enums!