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

This isn’t particularly uncommon or without precedent. This is just treating SIZE_MAX as the sentinel value of an otherwise unsigned type. This is what is done for std::dynamic_extent in C++ for instance.



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

Search: