4 ms·
Java not having unsigned types is a feature IMO.
by wavemode 3y ago
Java not having unsigned types is a feature IMO.
- jjtheblunt 3y agoWhy has this been helpful for your uses? (I ask from someone who has been away from Java since 2001 for the most part, in Swift and Rust and of course C.)
- wavemode 3y agoMost uses of unsigned are a code smell. People think unsigned means that something can't go negative. This isn't really true though. It CAN go negative, and then it silently wraps around and you then lose the ability to detect that it went negative.