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

Pages: 1-

Goto Considered Harmful

Name: Anonymous 2015-04-24 13:01

In 1978, Berkeley scientists did a study on the effects of GoTo on rats. Twenty rats in a control group were fed a normal diet, while twenty other rats were forced to program in Apple BASIC. Their health was to be monitored for a month, but after two weeks all of the rats in the programming group had melted into a dense goo that tasted a little like quiche.

But some rats learned to execute GOTO END_OF_MAZE, and finished in record time, while the nested block rats took too long to climb into and out of nested boxes to get to the end.

Name: Mentifex 2015-04-24 23:47

I am coding an AI Perlmind at

http://ai.neocities.org/perlmind.txt

and some of my Perl books mention that "goto" exists in Perl.

Name: Anonymous 2015-04-25 1:20

>>2
I have used goto in Perl.

Name: Anonymous 2015-04-25 2:16

>>3
I used it myself earlier this very day.

Name: Anonymous 2015-04-25 3:07

>>1
Agghh...
Ahhhhh.
Ah!
AH!
AH!
AAHAAHGGG!
MOTHEEEERRRR!!!
FUCKERAAAAAGHHHH!

Name: Anonymous 2015-04-25 16:49

>>1
Dank man, that's just dank as fug.

Name: Anonymous 2015-04-25 17:21

>>2
Yes, but is your AI air-gapped?

Name: Anonymous 2015-04-26 1:49

>>7
Air-gap my anus

Name: Anonymous 2015-04-26 2:05

>>7
He'd be better off using a silicone dielectric.

Name: Anonymous 2015-04-26 8:09

I replaced a whole lot of if (error) goto error; if (some_other_error) goto error; with nested ifS today.

Name: Anonymous 2015-04-26 10:32

>>10
Sounds like you need a monad.

Name: Anonymous 2015-04-26 14:35

monads are literally just goto

Name: Anonymous 2015-04-26 15:53

>>12
This one's right.
All monads are just the continuation monad. And continuation monad is a glorified GOTO.

Name: Anonymous 2015-04-26 16:53

>>13
that's so wrong I'm disappointed >>12 was trolling

Name: Anonymous 2015-04-26 16:56

>>14
Learn to spell before posting any more words, please.

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