4 ms·
I'm not saying not to use goto. The above example works on any C language, with some tweaks needed to K&R. I've done substantial Kernel work and can tell you th
by maldev 4y ago
I'm not saying not to use goto. The above example works on any C language, with some tweaks needed to K&R. I've done substantial Kernel work and can tell you that there's no reason to ever break my example and put multiple goto stubs. Can you provide a single situation where it is needed and there's no other alternative? I can't prove the negative you want me to.
- benj111 4y agoI'm not convinced that "more than 1 goto location considered harmful" is any different from "goto considered harmful" Each has its place. You don't 'need' to use Goto's at all. Your example could be achieved with more flags and if statements.