Type-Safe Scalars With Single-Field Structs
An interesting feature of C
struct
s is that structurally-identicalstruct
s are still different types. […] This fact gives us the tool we need to create new types rather than simply creating new names for existing types.
And there’s no overhead at runtime.