Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What's wrong with GOTO?

Name: Anonymous 2008-04-25 21:05

Saying that GOTO is wrong is like saying that pointers are wrong.

If you didn't know, your CPU doesn't call functions. It "calls" addresses or jumps, like, GOTO 10, which may be written in x86 assembly as JMP 10. You may have noticed that it's a direct translation, so using goto in languages like C gives the programmer even more flexibility for optimizations - more than using lots of functions and macro crap.

Name: Anonymous 2008-04-25 21:08

I use GOTO to escape out of deeply nested loops.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List