• Natanox
    link
    fedilink
    English
    52 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
      link
      fedilink
      22 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.

      • @[email protected]
        link
        fedilink
        5
        edit-2
        2 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?

        • @[email protected]
          link
          fedilink
          14 hours 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”

      • @[email protected]
        link
        fedilink
        5
        edit-2
        2 days ago

        For a long time we’ve said it’s important to separate semantics and presentation (eg html vs css).

        I’ve always wondered why we never followed our own advice when creating new programming languages. Let the IDE present whatever TF you want, and in the background it’s simply building an Abstract Syntax Tree and serializing that to a file in whatever serialization format it prefers.

        I’ve dreamed of making my own data-flow language that follows that principle, but I have neither the knowledge of compilers nor the free time to try.