• Natanox@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 days ago

    For a moment I wondered why the Rust code was so much more readable than I remembered.

    This would make a nice VS Codium plugin to deal with all the visual clutter. I actually like this.

    • Tlaloc_Temporal@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      I wish I could do this with every IDE. Get rid of all the semicolons and most curly braces and replace them with structural whitespace. You could even save the files with the punctuation and compile that to whitespace when editing.

      • verdigris@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        10 days ago

        You people are insane. Languages with meaningful whitespace are my personal hell. Don’t you value being able to space/tab/newline as you please?

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          1
          ·
          9 days ago

          Used to, but now that I realise what the real hell is, i.e. collaboration with others who might (and will) have different ideas about how code should be formatted, I’d rather leave that job to an autoformatter, too much mental overhead for little gain when there’s a tool that can enforce a single style across the whole codebase with a simple command, or better yet, a git hook. If anyone complains I can point to the tool and say “sorry, take it up with it, not me”