Somewhat surprising (to me) advice in Google's C++ style guide: "Try to avoid unsigned types (except for representing bitfields or modular arithmetic). Do not use an unsigned type merely to assert that a variable is non-negative." Example of a possible bug: abseil.io/tips/227 (via @wingolog.org)
16 likes 1 replies
?