Thrown exceptions are just socially acceptable gotos.

@josemanuel nope. goto does not do stack unwinding. it's fine to use it when you know what you do, though.
Follow

@iron_bug I was half-joking. Of course what I said was only true on a very superficial level, but my point was that, even though both disrupt the control flow, one is generally seen as a good thing with no visible influence on program verification, and the other is not, even though both can be misused (as @pkw pointed out) and used acceptably (as you mentioned yourself).

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.