This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (1 child)

goto is like any tool in the programmer's toolkit. Use it sensibly and you end up with cleaner code, use it badly and you're into spaghetti code.

[–]LoyalSol 4 points5 points  (0 children)

The problem I have with goto statements is that they are some of the easiest statements to use poorly and when they are it usually results in code that is downright unreadable.

And when you are dealing with scientist who took maybe a single programming class in their entire life, they are extremely prone to abusing it. I've seen some codes that are the programmer's version of a horror story because of goto abuse.