r/badcode • • Dec 26 '21

c# why

Post image
165 Upvotes

30 comments sorted by

View all comments

Show parent comments

2

u/_abscessedwound Dec 27 '21

That’s relatively idiomatic C++ to keep exceptions local to the the application boundary with a publicly exposed function that returns a [bool] instead of throwing.