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

goto is good

Name: Anonymous 2012-06-11 22:02

if you think otherwise you're a trendfag. goto is far more efficient than function calls for short blocks of code (lol compiler ignoring inline) and have a lot of neat applications.

Name: Anonymous 2012-06-12 7:26

goto is acceptable when you use it for error handling, like this:
[code]int foo()
{
        /* Allocate memory */
        if (/* error */)
                goto error;
        return 0;
error:
        fprintf(stderr, "Error occurred!\n");
        /* Release memory */
        return -1;
}

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