8 ms·
Here's what I hate about Java: No unsigned types. Why do you love this?
by MostAwesomeDude 15y ago
Here's what I hate about Java: No unsigned types. Why do you love this?
- lukesandberg 15y agoI very seldom find myself missing unsigned types in java. Most of the time using a BitSet or an EnumSet is probably what you want. What problem are you trying to solve that needs unsigned arithmetic?
- DarkShikari 15y agoImage/video data? How else are you going to store 8-bit unsigned pixels without ballooning memory and cache requirements? Of course nobody sane uses Java to write such code, so it's a moot point.
- MostAwesomeDude 15y agoNetworking code, in my specific case. Other uses include cryptography, on-disk binary formats, etc.