3 ms·
> Still, though, goto is considered so harmful that it's inspiration for "considered harmful" phrasing. It gets tiring constantly hearing this. We discussed it
by dmunoz 13y ago
> Still, though, goto is considered so harmful that it's inspiration for "considered harmful" phrasing.
It gets tiring constantly hearing this. We discussed it in depth 18 days ago [0]. I'm going to copy and paste something I said then, as it's relevant to your post:
> Also, a minor rant here: Dijkstra's "Go To Statement Considered Harmful" is often mentioned, sometime wordlessly, when goto is brought up, but it seems many of those people misunderstood what was actually being argued. Although he mentions being "convinced that the go to statement should be abolished from all 'higher level' programming languages," his main gripe was that the "unbridled use of the go to statement has an immediate consequence that it becomes terribly hard to find a meaningful set of coordinates in which to describe the process progress." He felt it was "as it stands is just too primitive; it is too much an invitation to make a mess of one's program." So, as others have pointed out already, his main issue was with goto being used in a way that resulted in unstructured, hard to understand programs.
[0] https://news.ycombinator.com/item?id=7191201 https://news.ycombinator.com/item?id=7191201
Edit: The original paper [1] is so short, it might as well be required reading before people bring up goto near any mention of "considered harmful".
[1] http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html http://www.u.arizona.edu/~rubinson/copyright_violations/Go_T...