Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×
Programming

+ - Is "goto" ever ok? 1

Submitted by Anonymous Coward
An anonymous reader writes "As programmers we spend years being told by our teachers and more experienced people, "goto bad!" And in general it is true, learning to program without goto is a good thing. But as an experienced programmers should the rule change from "never use goto" to "avoid goto" ? Or will the result be something like this."
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Is "goto" ever ok?

Comments Filter:
  • But as an experienced programmers should the rule change from "never use goto" to "avoid goto" ?

    Yes, of course. But if your language provides both RAII and labeled break/continue, you'll very likely never need it (if it's even available).

Whom the gods would destroy, they first teach BASIC.

Working...