3 ms·
I'd guess you could use function pointers to implement the example without goto? https://www.opensourceforu.com/2012/02/function-pointers-and-callbacks-in-c-an
by photochemsyn 4y ago
I'd guess you could use function pointers to implement the example without goto?
https://www.opensourceforu.com/2012/02/function-pointers-and-callbacks-in-c-an-odyssey/ https://www.opensourceforu.com/2012/02/function-pointers-and...
Then I looked up 'callbacks considered harmful'. Hmmm....
It's probably easier for an IDE to track down a function if you want to see how the code works, however, and the function might have some useful explanatory comments.
Suggested article: "People who claim code can explain itself considered harmful"