Open mratsim opened 2 years ago
Some libraries define distinct types to avoid mixing types with a semantically different purpose, for example:
type Miles = distinct float32
type Meters = distinct float32
type SecretBool = distinct uint64
It would be useful to support distinct types:
typedef
Some libraries define distinct types to avoid mixing types with a semantically different purpose, for example:
type Miles = distinct float32
andtype Meters = distinct float32
in a physics enginetype SecretBool = distinct uint64
in a cryptographic libraryIt would be useful to support distinct types:
typedef