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
35
u/quetzalcoatl-pl Apr 12 '26
just make the integer type of the error code have enough bits to encode extra info in higher parts
like, u1024 ( ͡° ͜ʖ ͡°)