I am converting some C code to Scala as we are moving (allegedly) into the Modern world here in Corporate towers, or so I have been told anyways.
Some of the C code uses
The JVM unfortunately does not support unsigned data types (besides char
, thanks Erwin), but there is hope! Scala has a sufficiently advanced type system that allows you to create your own types that act like unsigned types!
There is even a library that already does it! The library overloads the operators and provides conversions.