On goto
- Posted by "Wallace B. Riley" <wryly at MINDSPRING.COM> Sep 23, 1997
- 873 views
Hello again - Re Jiri Babor's comments on 'goto': I'm pleased to see that remark. "Conventional wisdom" says that 'goto' is to be avoided or even to be totally banished, because it causes "spaghetti code". It does nothing of the sort. "Spaghetti code" is the result of careless programming and of fast coding without thinking through the problem ahead of time. Carelessness may be easier when 'goto' is available, and the result harder to understand, but 'goto' is not the cause of carelessness. It just lets a programmer get away with being careless, at least for a while. Wally Riley wryly at mindspring.com