News for hackers. Stuff that matters.
Re:Almost Always Unsigned by willis936 on Sunday January 02, 2022 @08:10AM (#29768427)
This sounds like an issue with the language. 3-4 is not a large number and should not be by default. It should be a case handled by the developer.

Maybe you want to do some weird bit banging trickery, and that's fine too, but it should require an out-of-the-way function call.

Re:Almost Always Unsigned by dragonwriter on Sunday January 02, 2022 @01:21PM (#29771759)
> This sounds like an issue with the language. 3-4 is not a large number and should not be by default

Many languages optimize numeric operations and DX around numeric types for efficiency rather than correctness, and make the latter high-friction. (Wrap-around subtraction, decimal literals being treated as IEEE floats, etc.)

The exceptions (or cases where it is merely less true) tend to be very high level, dynamic languages.