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

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

    if (foo);
    {
      bar();
    }
    • rhabarba
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      3 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