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

Code from others

Name: Anonymous 2010-10-01 12:09

We all read a lot of code. Post some lines that lets you always facepalm. Example:


bool some_funtion(...)
{
    ...
    ...

    if ( other_func() && something_else )
        return true;
    else
        return false;
}

Name: Anonymous 2010-10-01 20:47

For some reason I can't see what's wrong with >>1

Name: Anonymous 2010-10-01 22:02

>>1
This is OK code - you can put breakspace on either of returns. Though I'd remove else clause and saved 1 line and 4 spaces

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