Distinct Types & Type Aliases
- Uses the uniform
def
syntax. - Regular type aliases are the same as C
typedef
. - Distinct types are type aliases that doesn’t implicitly convert to the aliased type.
distinct inline
types can automatically convert to its underlying type, but otherwise works as distinct types.