Hacker News new | past | comments | ask | show | jobs | submit login

Perhaps the type you want would be called “status” instead of bool. Zero meaning success, a few bits encoding severity, and the rest available to identify specifically the error. You would then have a macro or inline called “success” to convert it to a Boolean for flow control.

Welcome to VMS!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: