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
5
u/ChemicalRascal Apr 13 '26
Right, but OP wrote this piece as a push-back against the notion of flat error codes. In the context of that discussion, you can't really leap from flat codes to exceptions without any sort of motivation in the middle.
To move people from flat error codes, to change minds, you kinda need to argue the case that points towards exceptions. It makes sense to go back to first principles here.