Re:Almost Always Unsigned
by 8note on Sunday January 02, 2022 @02:44PM
(#29772867)
Types aren't always expressive enough for that. I usually can't specify that a number should always be negative for instance, or that there's no 0.
My preference is to minimize surprise. If everyone is used to using signed types for everything, you better have a good reason for using something else, and leave that justification in a comment
My preference is to minimize surprise. If everyone is used to using signed types for everything, you better have a good reason for using something else, and leave that justification in a comment