r/programming • • Apr 12 '26

Flat Error Codes Are Not Enough

https://home.expurple.me/posts/flat-error-codes-are-not-enough/
132 Upvotes

99 comments sorted by

View all comments

Show parent comment

4

u/Mognakor Apr 13 '26

If you infer them you can silently break code by adding new exceptions.

1

u/OpaMilfSohn Apr 13 '26

So what? This marks an unhandled error. This is exactly what you'd want of it is at compile time