OOP theory vs practice - eviltoast
  • tunetardis@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month ago

    I suppose it depends on the language? For the most part I think you’re right. Exceptions are only used (if at all) in situations where a program diverges unexpectedly from its normal flow. But take a language like Python. They’re just everywhere. Even your plain old for loop ends on an exception, and that’s just business as usual.