logoalt Hacker News

throwaway894345yesterday at 11:52 PM0 repliesview on HN

That’s not a negativity semantic, it’s the behavior of the “-“ operator. If you print y or compare it to zero you will see that the result remains positive. Unsigned integers by definition have no negative semantic, hence the name.