3 ms·
> I thought it has also been established not to use goto unless [...] “Established” by whom? Certainly not by kernel developers — `goto` is very common in all
by umanwizard 9y ago
> I thought it has also been established not to use goto unless [...]
“Established” by whom? Certainly not by kernel developers — `goto` is very common in all kernels I have looked at (xnu, Linux, bsd)
- deleted 9y ago[deleted]
- drchickensalad 9y agoAnd it has quite a consensus as the best solution to this problem. Goto being considered harmful is a generally true statement. However, this usage is a more specific exception to the rule, with objective benefits vs alternatives.
- user5994461 9y ago"goto considered harmful" is an old meme from 50 years ago, when control blocks like if and for were invented.