• Bienenvolk@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    On a serious note tho, I never understood the benefits of GNU’s spaces after functions. I don’t really mind most of the rest but I just don’t get the benefits of ‘funcname (arg)’ vs. ‘funcname(arg)’. Is there a specific reason for this? Personally, I find this to reduce readability because I have to think for a split second whether I’m looking at a variable or a function call.

    Of cause this is also due to my habits, but I’m curious as to what the reasoning is.

    • Alien Nathan Edward@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      ·
      9 months ago

      Honestly I think it’s just “spaces before open parens” and at least it’s consistent. K&R, which I use, wants spaces before the parens in conditionals and loops but not in method sigs or method calls and the linter at work gets me almost every time I type the word “if”.

      • Bienenvolk@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        Fair enough if the GNU dudes valued consistent spacing more than taking function calls as one “logical block”. Not my cup of tea but that’s what configurable auto formatting is for.