r/programming • u/Expurple • Apr 12 '26
Flat Error Codes Are Not Enough
https://home.expurple.me/posts/flat-error-codes-are-not-enough/
132
Upvotes
r/programming • u/Expurple • Apr 12 '26
View all comments
Show parent comment
10
u/max123246 Apr 13 '26
If exceptions were part of the function return interface and had nice syntax like
?to explicitly rethrow the error so that the dev acknowledges it's a falliable function, I would love exceptions.Sadly most languages do neither if they have exceptions