r/ProgrammingLanguages • u/Nuoji C3 - http://c3-lang.org • May 03 '26
Blog post Unsigned Sizes: A Five Year Mistake
https://c3-lang.org/blog/unsigned-sizes-a-five-year-mistake/
91
Upvotes
r/ProgrammingLanguages • u/Nuoji C3 - http://c3-lang.org • May 03 '26
View all comments
Show parent comment
3
u/jonathancast globalscript May 04 '26
C and C++ already have typed integer constants: 0U, 0L, etc.
Probably needs explicit
size_tandssize_tversions (and explicit size versions? E.g., an explicit 64- or 128-bit version) but it shows the issue is not unsolvable.(I know about this because Java allows implicit conversion of
inttolongbut does not allow implicit conversion ofinttoLong. I guess they reconsidered (even widening) implicit conversions at some point.)