this post was submitted on 11 Jul 2025
91 points (100.0% liked)
Linux
8409 readers
429 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of [email protected] and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I appreciate rust as much as the next dev. But you can define your own types in C just as well? And with the proper warnings and errors
-Wall -Werror
in place, any warning is an error, and implicit conversions should probably be a warning right?ETA: Just tried with the following C code and could not get it to fail with
gcc
.Tried with
gcc -Wall -Wextra -Wpedantic -Werror
and it compiled just fine.typedef
in C just make an alias to the same type.struct
s have nominal typing though: