61

Which side are you on?

Comments
  • 9
    int main(args)
    {
    [TAB]return 1;
    }

    // And no trailing spaces
  • 10
    int main(
    )
    { }
  • 0
    Int longFunctionName(args) {cmd;cmd;cmd;}
  • 26
    *Laugh in Python*
  • 2
    Your function is too long if it won't fit on a single line.

    int Main() { }
  • 11
    I'm gonna make my own C. With

    {
    // code
    } (int[] args) main

    And hookers!
  • 1
    main():

    Also [tab] instead four spaces, because I am rebel. *Reads PEP* I guess I am not allowed to be rebel, so have to change [tab] for four spaces :/
  • 1
    @hoofedear You sir just convinced me that there are true psychopaths on this earth
  • 1
    Hehehe.

    begin
    end.

    Aaaand, because that's too efficient, here a proper function:

    function Add (a, b: Integer): Integer;
    begin
    Result := a + b;
    end;

    Ahhh, it's beautiful!
  • 1
    int
    main
    (
    int argc
    ,
    char** argv
    )
    {
    [TAB][TAB][2 spaces]return 0;
    }
  • 1
    Python solves this elegantly.
    def function(parameter):
    <tab>return something
    function(parameter)
  • 0
    def foo
    end

    anyone?
  • 1
    Unpopular opinion:
    I use both variants depending on the function.
  • 1
    @benedikt VHDL? Did not expect another hardware designer on this app.
  • 0
    function function(arg)
    <tab>return 0
    end
    Oof
  • 1
    @OneJob No, it's the Object Pascal family (particularly FreePascal or Delphi).
    But VHDL seems to have some similarities. Interesting!
  • 0
    def main():
    yo

    otherwise

    fn main() -> i64 {
    yo
    }
Add Comment