3 ms·
Very valid points. Reminds me of the oft-repeated phrase, "Goto considered harmful!", regardless of its valid use-cases or of the context in which that origina
by AdmiralAsshat 9y ago
Very valid points.
Reminds me of the oft-repeated phrase, "Goto considered harmful!", regardless of its valid use-cases or of the context in which that original paper was published. I mean jeeze, even the Linux kernel uses GOTO on occasion for error cleanup.
- api 9y agoGOTO considered harmful is talking about spaghetti code with no higher order control structures, not about GOTO as a language feature. There are appropriate cases for the use of the latter. Lots of quotes get abused like this. Another favorite of mine is "premature optimization is the root of all evil." Lots of people take this as "never think about performance" or "performance doesn't matter" when its true meaning is "don't let premature concern for performance blind you to other concerns or short-circuit your creativity."
- deleted 9y ago[deleted]
- olavk 9y agoI think people forget GOTO was used instead of functions, if/loop blocks etc.