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-14 15:40

everyday

Name: Anonymous 2010-07-14 16:29

The only argument against goto is „my professor told me not to do so”.

Name: Anonymous 2010-07-14 16:37

Hey gaiz,
Y u 0ll youse dem hai leVEl 1angWich£s anyw@yz//??/ SALL coMpILeD DOun 2 AssEMBly, So Y n0T jUzT youse ThaT

Name: Anonymous 2010-07-14 16:54

Because the creators of some academic languages were against it. But at that time most people wrote in Cobol and Fortran where goto was another word for Pain, so their position is easy to understand.

Since then nobody bothered with a 'goto statements are good' paper, so it hangs around.

And Java was against it; The language of the bubble with all it's bubbly feelings.

Name: Anonymous 2010-07-14 16:59

Nobody thus far in this thread has a clue what they are talking about.

Name: Anonymous 2010-07-14 17:02

Since then nobody bothered with a 'goto statements are good' paper, so it hangs around.
Actually, I'm pretty certain that Knuth wrote a defence of it.

OP, your argument for goto is stupid. Abstraction is a good thing, and using higher level constructs makes your intent clearer. In general, unrestricted goto doesn't play well with other features of high-level languages and you could end up with a lot of uninitialised variables if you were to allow arbitrary jumps from one procedure to another. This is why even C restricts goto. If you are looking for a high level version of goto, you're probably going to want to read up on continuations. That said, goto is fine for some things, it's very useful to have in C when you want to jump to some cleanup code rather than faffing around with a couple extra ifs and flag variables.

Name: Anonymous 2010-07-14 17:11

GOTO Considered Harmful considered harmful.

Name: Anonymous 2010-07-14 17:27

If I may quote a fellow /prog/rider
Goto Considered Harmful is the Strunk and White of programming papers.

Name: Anonymous 2010-07-14 17:29

The interesting thing about Dijkstra is how selectively people choose to apply his lessons. His arguments against break/continue stem from the same reasoning behind his argument against GOTO, but the latter is regarded as "Ivory Tower Bullshit", while the latter is so ingrained the minds of dullards as to be a reflex

Name: Anonymous 2010-07-14 17:36

>>10
the first "latter" should, of course, be "former"

Name: Anonymous 2010-07-14 18:34

>>11
Is that to say the former `latter' should rather be formulated as `former' while on the matter of the latter `latter' it should remain as it formerly was?

Name: Anonymous 2010-07-14 19:11

>>1
Not malbolge.

Name: Anonymous 2010-07-15 7:00

>>13
GOTO Hell

Name: Anonymous 2010-07-15 8:02

>>14
i see wat u did thar

delete Anonymous;

FFFFFFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUU-

Name: Anonymous 2010-07-15 8:29

>>15
You're not funny.

Name: Anonymous 2010-07-15 8:48

>>14
With malbolge you're already there.

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.

Name: Anonymous 2010-07-15 11:26

LAMBDA
THE ULTIMATE GOTO

Name: Anonymous 2010-07-15 11:30

I can no longer tell trolls from genuine idiots. I'm pretty sure >>1 was trolling, but >>18 may be serious.

Name: Anonymous 2010-07-15 11:31

HAXUS
THE ULTIMATE GREAT

Name: Anonymous 2010-07-15 11:32

What is the fixed point of haxing anus?

Name: Anonymous 2010-12-17 1:31

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

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