• grue
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    2 years ago

    That guy was shitty at Python, then. Python is all about EAFP instead of LBYL.

    • ℓostme
      link
      fedilink
      arrow-up
      19
      ·
      2 years ago

      Eat ass fast paced instead of lay back your lettuce?

      • grue
        link
        fedilink
        English
        arrow-up
        15
        ·
        2 years ago

        “Easier to Ask Forgiveness than Permission” vs. “Look Before You Leap.”

        In other words, in Python you should just write the code to do the thing and then put an exception handler at the bottom instead of cluttering up your function with guard code everywhere.