Thread: How do i use Goto?

  1. #16
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    It is widely accepted that using GOTO is bad programming practice. But, that doesn't mean you can't use it.
    The great thing about programming is that there are many ways to do things.
    I have never written a program that has used GOTO. I was taught it was bad practice and have yet to encounter a situation where it was necessary.
    It was common to use in old languages like COBOL and commonly created spaghetti code. However, programmers are equally capable of writing unintelligible code without it.

  2. #17
    golfinguy, I applaud you. That was exactly the point I was trying to make while also describing exactly what goto is and why it is considered bad. I couldn't care less whether anyone uses it or not, what I care about is everyone dictating to new programmers not to use it at any costs...that's just wrong. I try not to tell others how to program, instead I offer my suggestion and recommend that they research the alternatives. This is the way to teach, show them how to teach themselves.

  3. #18
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    This again!!

    I'm surprised Salem has not yet posted here.

    I'm not even getting into it this time.

  4. #19
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Thanx Unregistered, I was just trying to say that it is a method that can be used. It is rarely neccessary but it still good to have in the arsenal.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  2. goto command
    By jhwebster1 in forum C Programming
    Replies: 3
    Last Post: 02-21-2006, 12:32 PM
  3. Does goto have a glitch or...?
    By Blackroot in forum C++ Programming
    Replies: 9
    Last Post: 02-18-2006, 10:40 AM
  4. helpppp
    By The Brain in forum C Programming
    Replies: 1
    Last Post: 07-27-2005, 07:05 PM
  5. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM