mstdn.io is one of the many independent Mastodon servers you can use to participate in the fediverse.

Administered by:

Server stats:

364
active users

A shocking realization:

I've been using C++ for my entire career.
Never used C++ exceptions. 😲

Is there anybody actually using C++ at scale with exceptions deliberately turned on, and striving to write exception-safe code, remembering to specify noexcept where needed?

...and how are they enjoying it? :troll:

Bernie

Kids, don't waste your time learning C++ exceptions... Learn good error-handling patterns from and and apply them to your production code!

Yes, you too @srevinsaju!

Those who stubbornly insist on using this terminally flawed C++ feature should at least watch this 1-hour long talk which summarizes a whole book on the two types of "noexcept" that you'll need to sprinkle all over your codebase (sometimes ever both on the same line!):
youtube.com/watch?v=3GwNjGMKBt

@srevinsaju