4 ms·
> People who give blanket rules such as never to use `goto` clearly do not understand where this idea comes from or why it should not be used. The idea comes f
by munificent 5y ago
> People who give blanket rules such as never to use `goto` clearly do not understand where this idea comes from or why it should not be used.
The idea comes from Dijkstra and he sure as hell did consider it a blanket rule: "I became convinced that the go to statement should be abolished from all 'higher level' programming languages (i.e. everything except, perhaps, machine code)."
- bgorman 5y agoC is portable machine code :)
- munificent 5y agoNot in Dijkstra's time it wasn't.
- krapp 5y agoOn any modern system it really isn't[0,1]. [0]https://news.ycombinator.com/item?id=16967675 https://news.ycombinator.com/item?id=16967675 [1]https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479