Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for distinct base types #46

Open
mratsim opened this issue Jul 16, 2022 · 0 comments
Open

Add support for distinct base types #46

mratsim opened this issue Jul 16, 2022 · 0 comments

Comments

@mratsim
Copy link

mratsim commented Jul 16, 2022

Some libraries define distinct types to avoid mixing types with a semantically different purpose, for example:

  • type Miles = distinct float32 and type Meters = distinct float32 in a physics engine
  • or type SecretBool = distinct uint64 in a cryptographic library

It would be useful to support distinct types:

  • either by automatically replacing them by their base type when exporting a proc
  • or creating a typedef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant