Dijkstra’s “Goto Considered Harmful” is one of the most famous articles of computer software engineering. I think that it was wrong but improved software engineering. I think that most programs can be improved by removing gotos, but not all programs. I wrote this version of the polynomial root finder as I normally would without gotos. I found a bug and when I fixed it the simplest correct version had four gotos. There was a contorted and possibly correct version but it was ugly and difficult for me to understand. I believe that the indicated version is correct.

Perhaps it is not worth learning to use goto since it is not often useful.