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

Pages: 1-

Programmers bashing on gotos are morons

Name: Anonymous 2012-07-30 0:11

.

Name: Anonymous 2012-07-30 0:21

goto /g/

Name: Anonymous 2012-07-30 0:39

gosub /b/

Name: Anonymous 2012-07-30 0:44

..

Name: Anonymous 2012-07-30 1:21

ALTER /prog/ TO PROCEED TO /g/

Name: Anonymous 2012-07-30 1:38

If they bash on gotos but their preferred language provides no alternative for easily breaking out of nested loops (like allowing names for them and then [m]break name;[/break], then fuck them!.

Name: >>6 2012-07-30 1:39

Fuck!
``break name;''
I have failed you, /prague/

Name: Anonymous 2012-07-30 4:53

>>6
I agree, that guido is a moron for not including named loops.  It would be extra nice to have them with a decent syntax and not like it's done in Perl:
loop_or_goto_label_who_can_tell:
foreach my $dick (@$your_ass) {

Name: Anonymous 2012-07-30 4:53

You'll know that GOTO/Jump is one of the fundamental commands if you know anything about hardware or assembly. I don't see why so many people cream themselves over shitty ENTERPRISE languages and their inept following dumbing down the lexicon to allegedly retard-proof the framework by going round essential commands that will have to be remade on hardware level.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-07-30 5:14

>>9
It's especially useful for writing state machines and other things that naturally "flow".

Use conditionals and loops when they make sense, but sometimes all you need is a jump.

Name: Anonymous 2012-07-30 5:25

>>10
For state machines, you'd use mutually tail recursive procedures. They map 1-to-1 with the states.

Name: Anonymous 2012-07-30 6:51

>>6
exactly. goto is great for nested conditionals and loops.

Name: Anonymous 2012-07-30 7:13

GOTO MY ANUS

Name: Anonymous 2012-07-30 13:07

It's rather interesting how goto is definitely bad, but a great number of object-oriented code is full of method calls to totally different modules. And maybe more, thanks to overriden/dynamically-bound methods.

Name: Anonymous 2012-07-30 16:27

>>13
Imminent approach in 3... 2... 1...

Name: Anonymous 2012-07-30 17:21

Yeah, I don't know what all these bashers are so pussy about. I use goto everywhere in web apps.


if (request.post) {
    if (!validate(request.post)) {
        flash_now('error', 'some error here');
        goto display;
    }
    submit(request.post);
    redirect('/foo/bar');
}
display: render('template.html');

Name: Anonymous 2012-07-30 17:26

You're now chatting with a random stranger. Say hi!
Question to discuss
:
Roleplay: both are lesbian females in a sex scene.

You: uh
Stranger: <dicks stranger in the mouth>
You: okay so we're two naked japanese schoolgirls and you're lying on the bed
You: I put my ass on your face and shit in your mouth
Stranger: okay and ive a dick :)
Stranger: and am bigger
Stranger: and cannot get pregnant or birth live younge
You: then I suck on your dick and you squirt semen everywhere
Stranger: and dont have mammary glands
Stranger: ok
You: now a gigantic chainsaw cuts you in half
You: and I grow a dick too
Stranger: jesus
You: now I fuck each half of you
Stranger: wtf
You: at the same time
Stranger: and i run out ):
You: in each ear

Your conversational partner has disconnected.

Name: Anonymous 2012-07-30 18:06


nested.each do |outer|
  break unless outer.each do |inner|
    break if inner.nil?
  end
end


more like languages where loops don't have return values are deficient.

Name: Anonymous 2012-07-30 19:31

Agreed.

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