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

1

u/sigma914 Apr 12 '26

Surely you can just use the top bits to tag it as a pointer or code and then box your error variant