3 ms·
"...with goto it is very easy to start forming spaghetti code." Exactly! Spaghetti code doesn't spontaneously occur. It happens slowly but surely, year after
by edw519 17y ago
"...with goto it is very easy to start forming spaghetti code."
Exactly! Spaghetti code doesn't spontaneously occur. It happens slowly but surely, year after year, one quick fix at a time. The odds against it are much better if the goto cherry is never popped.
"...purely because I know it will be criticized by everyone else..."
And also because you know better ;-)
- scott_s 17y agoExcept, as Dijkstra pointed out 40 years ago, and the discussion in the article supports, there are places where gotos are best practice.