• tunetardis@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months 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.