3 ms·
I stopped reading when he recommended if-goto.
by lfaraone 14y ago
I stopped reading when he recommended if-goto.
- dmaz 14y agoSure, goto was abused, but it's no worse than (or even better than) using continuations or using break and continue.
- crusso 14y agoAny of those mysterious jump-to-somewhere-else code features resemble goto. Not that I don't think they clean up some nesting issues, but they're pretty much the same thing as goto.
- Camillo 14y agoWhat if it were called "try/finally" instead?
- bingaling 14y agoUsage of goto is fine (the effects are easily understood) when the destination only points to lines ahead of the goto, within the same block. In this case, it makes the control flow more readable. http://www.kerneltrap.org/node/553/2131 http://www.kerneltrap.org/node/553/2131
- huhtenberg 14y agoToo bad, because it's the only sensible advice in the whole post.
- DeepDuh 14y agoI read the comments just expecting yours. Something must obviously bad if Dijkstra says so, right? We don't have to think for ourselves anymore if the god of CS himself has banned something, right?