C3 Tutorial
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Distinct Types & Type Aliases

  • Uses the uniform alias syntax.
  • Regular type aliases are the same as C typedef, C3 typedef creates a distinct type.
  • Distinct types are type aliases that doesn’t implicitly convert to the aliased type.
  • typedef inline types can automatically convert to its underlying type and inherit the methods of its underlying type, but otherwise works as distinct types.