• rhabarba@feddit.org
    link
    fedilink
    arrow-up
    22
    arrow-down
    6
    ·
    2 months ago

    For all of those, Lisp is the more logical choice. Plus, whitespace as syntax is the worst possible design decision.

      • Onno (VK6FLAB)@lemmy.radio
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        edit-2
        2 months ago

        Perl is the only language that looks just as incomprehensible before and after a rot13 transformation.

        Python on the other hand is the only language that will cause your application to stop working because you mixed up tabs and spaces, even though it looks perfectly fine on your scr.

        And lisp is hard to say if you have one.

        Edit: aa -> after a

        • Overspark@feddit.nl
          link
          fedilink
          arrow-up
          4
          ·
          2 months ago

          It is absolutely fine to mix tabs and spaces in Python, as long as you are consistent about it. It’s not recommended though, as it’s easy to mess up if you’re not paying attention. Most IDE’s will convert tabs to spaces anyway so it’s a bit of a non-issue.

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          Perl is the only language that looks just as incomprehensible before and aa rot13 transformation.

          Lol. You’re not wrong.

        • cfi@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          Perl is the only language that looks just as incomprehensible before and after a rot13 transformation.

          APL would like a word, though I imagine ROT13 on APL source code might actually be horrific.

    • TheHarpyEagle@pawb.social
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      I’ve had very few issues with whitespace in my decade or so of using python, especially since git and IDEs do a lot to standardize it. I’m a Python simp, tho

    • unalivejoy@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      edit-2
      2 months ago

      You say that, then use a language that allows you to do this (it’s not lisp)

      if (foo);
      {
        bar();
      }
      • rhabarba@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 months ago

        You can make embarrassing mistakes in virtually any programming language that’s not too esoteric.

        When I still used Python for prototyping (today, I usually use Go for that), it happened much too often that I did this:

        if foo:
            bar()
           foobar() # syntax error
        

        In Lisp, however, both errors are much harder to make (not even considering GNU Emacs’s superb auto-indentation - which is what most Lispers use these days, as far as I know):

        (when foo)  ;; <- obvious!
            (bar))
        
        (when foo
            (bar)
                  (foobar)  ;; <- still valid
        (quux))  ;; <- also still valid