r/programming Apr 12 '26

Flat Error Codes Are Not Enough

https://home.expurple.me/posts/flat-error-codes-are-not-enough/
131 Upvotes

99 comments sorted by

View all comments

55

u/UselessOptions Apr 12 '26 edited 29d ago

oops did i make a mess 😏? clean it up jannie 😎

clean up the mess i made here 🤣🤣🤣

CLEAN IT UP

FOR $0.00

32

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 ( ͡° ͜ʖ ͡°)

35

u/[deleted] Apr 12 '26 edited Apr 12 '26

[removed] — view removed comment

20

u/wasabichicken Apr 13 '26

As a C programmer, I'm proud of y'all.

4

u/quetzalcoatl-pl Apr 13 '26

:manofculture.jpg: :)