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/Guvante May 03 '26
Constants tend to be the major problem for dropping implicit conversions.
What is the type of 0?
Sure you can force it to be a single type but that introduces its own problems.
The simplest solve is roughly "integers are the smallest type that fits" and "up casting that is perfectly safe is allowed" aka uint8 -> uint16 or even int16 is allowed since it is always safe.
But now you have implicit conversions...