Click here to Skip to main content
15,906,708 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the Day Pin
PeejayAdams20-Jun-19 5:41
PeejayAdams20-Jun-19 5:41 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer20-Jun-19 6:52
professionalDaniel Pfeffer20-Jun-19 6:52 
GeneralRe: Thought of the Day Pin
Brisingr Aerowing20-Jun-19 12:00
professionalBrisingr Aerowing20-Jun-19 12:00 
GeneralRe: Thought of the Day Pin
Ron Anders20-Jun-19 12:41
Ron Anders20-Jun-19 12:41 
GeneralI just used a goto! PinPopular
Super Lloyd20-Jun-19 0:58
Super Lloyd20-Jun-19 0:58 
GeneralRe: I just used a goto! Pin
OriginalGriff20-Jun-19 1:00
mveOriginalGriff20-Jun-19 1:00 
GeneralRe: I just used a goto! Pin
Super Lloyd20-Jun-19 1:10
Super Lloyd20-Jun-19 1:10 
GeneralRe: I just used a goto! Pin
OriginalGriff20-Jun-19 1:19
mveOriginalGriff20-Jun-19 1:19 
The important thing with goto is knowing when not to use it - which is most of the time. Laugh | :laugh:

Goto has its place, but if you can use a structured loop or branch instead then your code is generally cleaner and more maintainable. But very occasionally, using a goto makes your code cleaner or much more efficient and (provided it's well documented) isn't a problem.
It's a problem when it's used because they can: and teachers who introduce it early should be hung, drawn, and quartered (and I don't mean "well hung", "sketched", and "given an apartment").
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: I just used a goto! Pin
swampwiz20-Jun-19 3:01
swampwiz20-Jun-19 3:01 
GeneralRe: I just used a goto! Pin
lopatir20-Jun-19 3:47
lopatir20-Jun-19 3:47 
GeneralRe: I just used a goto! Pin
Mike Winiberg20-Jun-19 20:29
professionalMike Winiberg20-Jun-19 20:29 
GeneralRe: I just used a goto! Pin
RJOberg20-Jun-19 3:31
professionalRJOberg20-Jun-19 3:31 
GeneralRe: I just used a goto! Pin
Kirk 1038982121-Jun-19 6:47
Kirk 1038982121-Jun-19 6:47 
GeneralRe: I just used a goto! Pin
GKP199220-Jun-19 1:01
professionalGKP199220-Jun-19 1:01 
GeneralRe: I just used a goto! Pin
Super Lloyd20-Jun-19 1:08
Super Lloyd20-Jun-19 1:08 
GeneralRe: I just used a goto! Pin
Kevin McFarlane20-Jun-19 1:26
Kevin McFarlane20-Jun-19 1:26 
GeneralRe: I just used a goto! PinPopular
DRHuff20-Jun-19 1:19
DRHuff20-Jun-19 1:19 
GeneralRe: I just used a goto! Pin
Super Lloyd20-Jun-19 1:39
Super Lloyd20-Jun-19 1:39 
GeneralRe: I just used a goto! Pin
raddevus20-Jun-19 2:00
mvaraddevus20-Jun-19 2:00 
GeneralRe: I just used a goto! Pin
swampwiz20-Jun-19 3:05
swampwiz20-Jun-19 3:05 
GeneralRe: I just used a goto! Pin
Rick York20-Jun-19 4:40
mveRick York20-Jun-19 4:40 
GeneralRe: I just used a goto! Pin
raddevus20-Jun-19 5:31
mvaraddevus20-Jun-19 5:31 
GeneralRe: I just used a goto! Pin
Nelek20-Jun-19 4:59
protectorNelek20-Jun-19 4:59 
GeneralRe: I just used a goto! Pin
David O'Neil20-Jun-19 7:34
professionalDavid O'Neil20-Jun-19 7:34 
GeneralRe: I just used a goto! Pin
PeejayAdams20-Jun-19 1:25
PeejayAdams20-Jun-19 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.