Click here to Skip to main content
15,894,896 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: goto statement Pin
Stefan_Lang10-Nov-13 22:13
Stefan_Lang10-Nov-13 22:13 
GeneralRe: goto statement Pin
Rob Grainger10-Nov-13 22:32
Rob Grainger10-Nov-13 22:32 
GeneralRe: goto statement Pin
vl211-Nov-13 7:56
vl211-Nov-13 7:56 
GeneralRe: goto statement Pin
Rob Grainger13-Nov-13 2:02
Rob Grainger13-Nov-13 2:02 
GeneralRe: goto statement Pin
TNCaver11-Nov-13 6:54
TNCaver11-Nov-13 6:54 
GeneralRe: goto statement Pin
Kornfeld Eliyahu Peter9-Nov-13 23:54
professionalKornfeld Eliyahu Peter9-Nov-13 23:54 
GeneralRe: goto statement Pin
OriginalGriff9-Nov-13 23:55
mveOriginalGriff9-Nov-13 23:55 
GeneralRe: goto statement Pin
  Forogar  10-Nov-13 5:26
professional  Forogar  10-Nov-13 5:26 
After using FORTRAN for far too long (up to Fortran-77) with it's use of GOTO and, even more obfuscating, computed gotos, I started using C. However, I was self-taught and was therefore never was taught by anybody that there was a GOTO in the language! I used C for several years, then C++ and now I am firmly in the C# camp. I personally have never used GOTO in any of that code and was shocked one day to find a GOTO residing in someone else's code I had to fix. It was a revelation as big as finding out that one is allowed to use guns during a penalty kick-off. I didn't even know the syntax existed!

The whole point of my argument is that I never felt the need for a GOTO at any time, ever - so I didn't miss it. I didn't make artificial constructs to get around using GOTO; I didn't deliberately re-write my code to avoid using one; it just came about naturally that I didn't ever need one.

Having said that, I am sure that GOTO may be useful in some real-time code somewhere for performance reasons. My real bug-bear is with multiple RETURNs. I do actually go out of my way to avoid them and re-write them out of existence wherever I find them. I have not yet found any instance where multiple RETURNs from a method has been necessary. I miss allowing the drop through of CASE statements in a switch that has been removed in C#, forcing me to put BREAK at the end of each part and leading me to repeat code unnecessarily now and then so I am not always in favour of compiler/syntax restrictions in a language but I wish multiple RETURNs had been proscribed in the same way.
- I would love to change the world, but they won’t give me the source code.

GeneralRe: goto statement Pin
OriginalGriff10-Nov-13 5:34
mveOriginalGriff10-Nov-13 5:34 
GeneralRe: goto statement Pin
  Forogar  10-Nov-13 6:09
professional  Forogar  10-Nov-13 6:09 
GeneralRe: goto statement Pin
Richard Andrew x6410-Nov-13 9:28
professionalRichard Andrew x6410-Nov-13 9:28 
GeneralRe: goto statement Pin
  Forogar  10-Nov-13 12:52
professional  Forogar  10-Nov-13 12:52 
GeneralRe: goto statement Pin
Rob Grainger10-Nov-13 22:34
Rob Grainger10-Nov-13 22:34 
GeneralRe: goto statement Pin
rx7man11-Nov-13 19:56
rx7man11-Nov-13 19:56 
GeneralRe: goto statement Pin
Tarek Elqusi11-Nov-13 21:22
professionalTarek Elqusi11-Nov-13 21:22 
GeneralRe: goto statement Pin
Herbie Mountjoy11-Nov-13 4:18
professionalHerbie Mountjoy11-Nov-13 4:18 
GeneralRe: goto statement Pin
KP Lee11-Nov-13 13:16
KP Lee11-Nov-13 13:16 
GeneralRe: goto statement Pin
KP Lee11-Nov-13 13:07
KP Lee11-Nov-13 13:07 
GeneralRe: goto statement Pin
Member 354006812-Nov-13 6:42
Member 354006812-Nov-13 6:42 
GeneralRe: goto statement Pin
GuyThiebaut9-Nov-13 21:26
professionalGuyThiebaut9-Nov-13 21:26 
GeneralRe: goto statement Pin
OriginalGriff9-Nov-13 21:28
mveOriginalGriff9-Nov-13 21:28 
GeneralRe: goto statement Pin
Tarek Elqusi9-Nov-13 21:45
professionalTarek Elqusi9-Nov-13 21:45 
GeneralRe: goto statement Pin
CDP18029-Nov-13 22:22
CDP18029-Nov-13 22:22 
GeneralRe: goto statement Pin
CDP18029-Nov-13 21:54
CDP18029-Nov-13 21:54 
GeneralRe: goto statement Pin
Mark H210-Nov-13 22:14
Mark H210-Nov-13 22:14 

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.