• vampire@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    4 months ago

    Just run with the default style of the de-facto formatter for whatever language you are using. It’s really not worth any mental effort.

    • GissaMittJobb@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      4 months ago

      This is true, but it also moves the discussion to which is the superior code for matter for languages that don’t have a clear default option, and of course to which languages have the best formatters.

      I have a hard stance in this question - code formatters should be deterministic on any given syntax tree - there should be no leeway for choosing how any given piece of code formats. Seriously. If your anti-bikeshedding tool does not completely eliminate the bikeshedding, you have not done your job correctly.