Submitted by Dacadey t3_z89cro in explainlikeimfive
Menolith t1_iyah8ka wrote
Mostly just because they make a mess out of the flow of the program. Modern languages have tools you can use to perform complex logic with a syntax that doesn't seemingly arbitrarily hop all over the code to get things done.
GOTOs were useful in the early neolithic era when Grog first invented COBOL and the concept of a "loop" was novel, but nowadays there are better options. If you find yourself in need of using one, chances are that whatever structure you have in mind can be represented in a way which doesn't need a GOTO.
Existing-Metal-5211 t1_iydig8t wrote
Said like someone who never wrote in ML/ASM.
Viewing a single comment thread. View all comments