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 a macro for generating wrapper types #768

Open
elichai opened this issue Aug 27, 2024 · 1 comment
Open

Add a macro for generating wrapper types #768

elichai opened this issue Aug 27, 2024 · 1 comment

Comments

@elichai
Copy link

elichai commented Aug 27, 2024

A lot of time you use multiple different UUIDs for different purposes in the same app, in those scenarios you want to wrap the Uuid type with your own, you start with a slim API and slowly it grows and grows for each wrapper type.
if the library could export a macro_rules macro that creates wrapper types with all the API included that could be pretty cool.
(honestly, it is starting to feel like this should be a language feature :) )

Would love to hear other opinions :) (if you're supportive of this I can find some time to draft a PR)

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

2 participants
@elichai and others