3 ms·
I'd like to see you hunt for the dynamically added case to the dispatch table. Maybe then, you'll change your mind. There is no fundamental difference between
by artificialidiot 13y ago
I'd like to see you hunt for the dynamically added case to the dispatch table. Maybe then, you'll change your mind.
There is no fundamental difference between either approaches except the runtime cost. If you need conditonals, use them. If you need a lookup table, use them. Keep the code predictable.