Almost Always Unsigned

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.
52 points by gavide 106 days ago graphitemaster.github.io 62 comments
Summary not yet generated for this article.

Comments (62 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open