logoalt Hacker News

IshKebabyesterday at 7:52 PM1 replyview on HN

It seems like they've identified common bugs patterns in C that would have been ameliorated by using signed, but come to the wrong conclusion that signed is the correct answer rather than that C is poorly designed for making the broken code the easy option.

Fix the language. Don't hack around it by using the wrong type.


Replies

ozgrakkurtyesterday at 8:33 PM

This is already fixed in c via bitint types and disabling implicit integer sign casting.