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

Pages: 1-

Dijkstra...

Name: Anonymous 2010-09-13 16:49

...is my real homeboy.
Edsger Dijkstra is flawless and sometimes I wish /prog/ could understand him.

Name: Anonymous 2010-09-13 16:59

If more people read and understood his goto argument, software would suck a lot less.

Name: Anonymous 2010-09-13 17:54

i use goto

Name: Anonymous 2010-09-13 18:06

I use goto mostly for this kind of thing:
/* ... */
if (!(ptr = malloc (size)) goto fail_malloc;
if (!(fh = fopen (some_file))) goto fail_fopen;
if (some_other_thing_that_can_fail (foo) != bar) goto fail_some_more;
/* ... */
return success;
fail_some_more:
    fclose (fh);
fail_fopen:
    free (ptr);
fail_malloc:
    clean_up (previous shit);
return failure;

Name: Anonymous 2010-09-13 18:14

I use goto only for escaping from combinations of loops and switches.

Name: Anonymous 2010-09-13 18:45

I use goto solely to load bits into eip.

Name: Anonymous 2010-09-13 18:54

/prog/ arguments over goto are almost as nauseating as our arguments over the pre/post-increment operators.

Name: Anonymous 2010-09-13 18:56

>>7
There is no argument over goto except in the minds of idiots

Name: Anonymous 2010-09-13 21:31

>>4
An [u][b][overline]ENTERPRISE QUALITY[/u][/b][/overline] language would have no need for goto for error handling

Name: Anonymous 2010-09-13 21:58

>>9
Typical javaschool grad detected.

Name: Anonymous 2010-09-13 22:09

>>2
ENTERPRISE is responsible for software sucking today, not goto. Also, go suck Dickstrap's strap-on dick.

Name: Anonymous 2010-09-13 22:11

>>8
Looks like you've never written anything really useful.

Name: Anonymous 2010-09-13 22:23

>>12
I think you might've misunderstood him.

>>8 is presumably suggesting that only a fool would argue about it; a smarter person would recognize the legitimacy of goto in some circumstances and the recklessness of using it in others, and be able to differentiate the two.

Which is true, but maybe giving some people too much credit.

Name: Anonymous 2010-09-13 23:39

giving the career programmer any credit is too much

Name: Anonymous 2010-09-14 0:15

>>8
There is likewise no argument over the pre/post-increment operators.

Name: Anonymous 2010-09-14 3:22

goto is for pussies, I use comefrom

Name: Anonymous 2010-09-14 9:11

>>16
All head calls can be translated to comefromes.

Name: Anonymous 2010-09-14 13:25

Relevant: http://kerneltrap.org/node/553/2131

Argument flaw detected: Appeal to Linus

Name: Anonymous 2011-02-02 22:56

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