Almost Always Unsigned

·Hacker News··

Almost Always Unsigned # Written by Dale Weiler Twitter GitHub Last updated Saturday, January 1, 2022 The need for signed integer arithmetic is often misplaced as most integers never represent negative values within a program. The indexing of arrays and iteration count of a loop reflects this concept as well. There should be a propensity to use unsigned integers more often than signed, yet despite this, most code incorrectly choses to use signed integers almost exclusively.

Read full article →

Related Articles

There's no reason for software to be slow anymore
Jach · Hacker News · 1d ago
hdiutil is deprecated in macOS 27 Golden Gate
zdw · Hacker News · 7h ago
Kobo can run apps now
thepoet · Hacker News · 1d ago
Malicious Rust crate Arrayref runs a build-time payload
abhisek · Hacker News · 2d ago
Z80 – The 1970s Microprocessor Still Alive (2021)
asdefghyk · Hacker News · 16h ago