In V type aliases is a special case of a sum type declaration.
Type aliases are useful for creating a new name for an existing type.
For example, you can use a type alias to make a
string type more descriptive:
Like other types, alias types can have methods:
Alias types inherit all methods of the base type:
If the base type is a structure, then all fields are also inherited:
Type aliases are also useful for shortening long type names: