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

Pages: 1-

FIOC > Parens > Braces

Name: Anonymous 2012-02-26 22:42

Haskell developers can admit this, why can't you?

Name: Anonymous 2012-02-26 22:44

FIOC is great for leaking semantics of your program if something trashes your indentation

gb2 reddit, ``pythonista''. convert to javascript and repent

Name: Anonymous 2012-02-26 22:46

something trashes your indentation
Try using a real editor.

convert to javascript
I do, every time I edit a webpage.

Name: Anonymous 2012-02-26 23:08

FIOC is shit that should have died with punch cards. Free-form languages are the best languages.

Name: Anonymous 2012-02-26 23:25

FIOC:
if p:
    print n

    return n

C-like:
if (p) {
    printf("%d\n", n);
    return n;
}


Enlightened FIOC wizard: ``I prefer the first because it says the same thing without the braces and semicolons by intelligently parsing the indentation that any sane programmer would use anyway.''

Retarded C faggot: ``Both are pig disgusting. Indentation is for PUSSIES!
if(n)
{
printf("%d\n", n);
return n;
}
That's better !!''

Name: Anonymous 2012-02-26 23:39

>>5
Both are pig disgusting. Braces are for pussies.

if(n) return n + (printf("%d\n", n) & 0);

Name: Anonymous 2012-02-26 23:45

i agree that fioc is the best, but for some reason python is annoying

Name: Anonymous 2012-02-26 23:47

>>7
it's because of the FIOC

Name: Anonymous 2012-02-26 23:49

>>6
void value not ignored as it should be

Name: Anonymous 2012-02-27 0:00

>>9
printf returns an int, ``faggot''

Name: Anonymous 2012-02-27 0:05

>>9
0/10, read your standard.

Printf can fail

Name: Anonymous 2012-02-27 0:12

Java master race reporting in. Indentation with braces is the ultimate code formatting scheme.


public static void main(String[] args)
{
    boolean p = true;
    if (p)
    {
        System.out.println("Hello, world!");
    }
}

Name: Anonymous 2012-02-27 0:13

>>11
Printf can fail
When you use it, it probably does.

Name: Anonymous 2012-02-27 0:15

>>12
scheme

Subtle.

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