Nothing too serious, i want to hear your petty, your eccentric, your off beat takes.

  • Zexks@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    Python is the only langauage where this matters. You can write pretty much every other langauage in one long string if you want (fhats what the compiler does to it). But that makes it really hard to read

    • PeriodicallyPedantic@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      12 days ago

      Thats not what I’m talking about.

      python is one of the few popular languages where presentation is semantic but I’m talking about separating semantics from presentation. you should be able to radically change how you see the code without actually changing the file.

      I should be able to apply a personal style to the code and view it with small indentations, or large indentations, with line widths of 80char or 120char, function args within parentheses or not. I should even be able to localize it into another natural language, or even view and edit it as a flow chart instead of text, all without actually changing the underlying file that contains the semantics.

        • PeriodicallyPedantic@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          5 days ago

          Have you?

          Is your argument that compilers need to change their output based on the way that text gets displayed to users? That’s a pretty wild claim to make.

          • Zexks@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            Yes i have. Several. Its kind of a right of passage after a certain point. They evaluate your desired commands by interpreting the symbols you use and the order you put them in. So yes if you put your symbols in different orders they will be interpreted differently. The way the text is displayed to users is a representation of how it is stored. If you want to have different viewing standards for the same code youre going to have to ALSO code for those different views. Or you force it and tell everyone that YOUR way is the ONLY way and you code your IDE as such.

            For pretty much every language BUT python you can “view” it however you want. So long as youre willing to code your display to do as much.