• Natanox@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    15 hours 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
      3
      arrow-down
      1
      ·
      9 hours 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
        4
        ·
        edit-2
        5 hours 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?

      • PeriodicallyPedantic@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        7 hours 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.