Implicit cast uint to int #6321
Closed
louisph1
started this conversation in
Ideas/Requests
Replies: 2 comments
-
|
I'd like to add smaller to larger integer types (eg i16 to i32) as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
No. This goes against the core philosophy of Odin's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It is super annoying when I have to cast a u32 to a function that takes i32, especially when they are the exact same binary representation. I do not think this is the kind of thing that will realistically lead to any issues, atleast I never had any in C.
If you really hate implicit casts, there can be some kind of compiler directive to allow it.
Beta Was this translation helpful? Give feedback.
All reactions