Although throw() has been deprecated for a while now, I thought this was an interesting bit of history regarding Microsoft’s compiler.

  • jormaig
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Why didn’t they follow the way Java does it by forcing you to specify all possible throws of a function? Is it because it’s too verbose?

    Or rather, why isn’t nothrow the default unless specified that a function can throw?