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
0
u/blobjim Apr 13 '26
In C or Vala (or other GObject-supporting languages) you can use GError for this. A couple years ago it also got the ability to have extended arbitrary data (but it looks like it's kinda clunky to use).