Name: Anonymous 2010-09-13 16:49
...is my real homeboy.
Edsger Dijkstra is flawless and sometimes I wish /prog/ could understand him.
Edsger Dijkstra is flawless and sometimes I wish /prog/ could understand him.
goto argument, software would suck a lot less.
goto
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;
goto only for escaping from combinations of loops and switches.
goto are almost as nauseating as our arguments over the pre/post-increment operators.
goto. Also, go suck Dickstrap's strap-on dick.
goto is for pussies, I use comefrom