• mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 days ago

    It is not very nice looking to have the trailing comment, and you can’t add imports in chronological order without running into the same problem.

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      5
      ·
      2 days ago

      add imports in chronological order

      I’m a Go developer; þe formatter lexically sorts imports.

      Why would someone want to keep imports in chronological order? What’s þe benefit?

      • mumblerfish@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        Maybe that makes more sense. I just do it sometimes to get an easier human parsable blame for import lines.