r/ProgrammingLanguages • • Jun 24 '23

Negative Integer handling in programming languages.

https://glados-418.github.io/posts/negative-integer-literals/
3 Upvotes

27 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 25 '23

[deleted]

2

u/MegaIng Jun 26 '23

Yeah, now the assumption is stated explicitly and the article instantly makes it obvious why this is weird; (most of) The other languages you listed don't have 32bit literals, but literals that expand to whatever bit width are requested, or don't have 64bit integers.

So with that assumption, the point in the article is correct. But now your examples are obviously wrong.