|
|
|
|
|
by kevin_thibedeau
47 days ago
|
|
Systems programmers love to hate on unsigned integers. Generations have been infected with the Java world model that integers have to be pretend number lines centered on zero. Guess what, you still have boundary conditions to deal with. There are times when you really really need to use the full word range without negative values. This happens more often with low level programming and machines with small word sizes, something fewer people are engaged in. It doesn't need to be the default. Ada has them sequestered as modular types but it's available to use when needed. |
|
Yes I miss them in Java as primitives, however there are utility methods for unsigned arithmetic, that get it right.