Follow

Mulling over e.g. wiki.c2.com/?DontUseExceptions it seems to me that “Don't Use Exceptions for Unexceptional Flow Control” would be a better motto.

The main argument is just readability — can the reader understand code?

Nearly the last word on the page — “I use exceptions when the preconditions are met, but I can't meet the postconditions” seems like a good motto for when to use exceptions.

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.