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

This is a technique useful in many different places. Using enums/defines that don't start at 0 in C/C++, for instance, helps debugging when you're dealing with possible memory corruption. Likewise, making sure related enums don't overlap in values helps disambiguate logic errors and other potential bugs when those enums are used in data structures.



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

Search: