• Swiggles@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        You can work around most issues in any language with the right tools. That’s not the point.

        If a design decision introduced a whole new class of errors it is probably just bad design.

        • dudinax@programming.dev
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          3 years ago

          It also greatly improved readability of the language. Since switching to the standard of using 4-space tabs, I’ve not had any problems except when dredging up someone’s old Python 2 code.

          • nous@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 years ago

            You can create some really ugly code in spite of the forced indentation in python. Indentation does not really help here at all. In all languages you can correctly or incorrectly format things. A code formatter strictly applying a coding standard helps far more here than indents vs bracers. Take a look at black it takes the pep8 standards and adds more strict things on top making code look a lot more consistent and thus makes it easier to read.

            And all formatters will indent code consistently, so having it as part of the language parser does not really help improve readability at all. And even without a formatter everyone I know will still correctly indent their code no matter the language used. But sometimes forcing new lines to have a meaning does make things worst - just look at pythons lambdas which have to be a single line.