3 ms·
> proving nested blocks were objectively better than go-to's Dijkstra spent many, many pages on that. And it's still not a clear cut "this one is always better
by marcosdumay 8y ago
> proving nested blocks were objectively better than go-to's
Dijkstra spent many, many pages on that. And it's still not a clear cut "this one is always better" case, as there are some obvious exceptions.
- vajrabum 8y agoIf you'd ever had to support some old Fortran or Cobol littered with gotos you'd probably sing a different tune. I'd guess you've never seen that sort of mess though. It's gotten pretty rare.
- marcosdumay 8y agoWell "some excceptions" of course is not the same as the entirely unstructured languages out there. I've written a lot on the fortran-inspired MS Basic when a child. I know quite well how bad they can become.
- tabtab 8y agoI wish to make it clear I am NOT defending goto's as an actual practice. I'm only saying that objective proof that they are "bad" is lacking. Goto's served as a test case of objective evidence of code design. Do note that some actual coders have claimed that if you establish goto conventions within a shop, people handle them just fine.