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

GOTO

Name: Anonymous 2010-07-14 15:06

Don't most constructs evaluate into GOTO statements in assembly anyway? I don't understand all the GOTO hate, everyone implicitly uses it. I know it looks ugly in higher level code that has cleaner alternatives, but why all the self-righteousness against it?

Name: Anonymous 2010-07-15 11:20

I suppose because modern compilers are more suited to code that doesn't frequently use goto statements? Perhaps they can optimise code better when we don't use goto.
That aside, there are too many stupid programmers (Stupid in the sense they don't think for themselves and conduct their own research) who just want the feeling of being 'right'
If you're comfortable writing goto statements, I don't see why you shouldn't.
If somebody is going to say 'you should not use goto', an equally valid argument would be 'You should not use the assignment operator'
The language is there to be used. Each construct in its own little way.
Have at it. Ignore the idiots.

I had someone telling me 'There is no valid reason to use continue.'
The same person did not know you could declare variables at the start of each code block. He is also a self-righteous prick who studied English too much to feel 'better' than other people.

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