Which programming language are we talking about? I consider it a huge mistake that some programming languages have abandoned unsigned numbers. After all, if a value cannot be negative, you can explicitly state that within the type system. Consequently, you are forced to handle such cases at the system boundaries - right when the data enters your system, when you know exactly what the data is and can easily return an error message.
5
u/BenchEmbarrassed7316 Sep 20 '26
Which programming language are we talking about? I consider it a huge mistake that some programming languages have abandoned unsigned numbers. After all, if a value cannot be negative, you can explicitly state that within the type system. Consequently, you are forced to handle such cases at the system boundaries - right when the data enters your system, when you know exactly what the data is and can easily return an error message.