3 ms·
If you're talking about building blocks, goto is also a necessary evil...
by fpgeek 12y ago
If you're talking about building blocks, goto is also a necessary evil...
- xxs 12y agoYou will be surprised at the goto use in the linux kernel...
- tonysuper 12y agogoto is perfectly acceptable in C code. The most common use case is for cleaning up after errors before returning, although they're also used to break out of nested loops cleanly. goto is harmful when used improperly but fine everywhere else.
- xxs 12y agoI didn't mean it's a bad thing, it was a reply to some blanket statement.
- Dylan16807 12y agoI think you missed that fpgeek was turning exDM69's comment around on itself to put goto and spinlock into the same category. fpgeek wasn't actually making a statement about goto
- nocman 12y agoOh, nice turnaround! That one was funnier then the orignal pun. Nicely done. :D