logoalt Hacker News

ogoffart • today at 6:45 AM • 0 replies • view on HN

What's considered harmful is unstructured programming.

Historically, goto was used where we would now use function calls, or braced if/else statements. (early programming language didn't even have these constructs)

The famous "Go To Statement Considered Harmful" paper from Dijkstra was published before C was created. The "goto" from C and C++ is mostly fine.