• rhabarba@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    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