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

Consider a shorter alias for the macro name #4

Open
pravic opened this issue Feb 10, 2022 · 1 comment
Open

Consider a shorter alias for the macro name #4

pravic opened this issue Feb 10, 2022 · 1 comment

Comments

@pravic
Copy link

pravic commented Feb 10, 2022

Because #![doc = document_features::document_features!()] is quite long and unnecessary repeats itself.

I think it'll be better to have something like document_features::get!(), extract, etc.

@ogoffart
Copy link
Member

That's true.
On the other hand, this only appear once per crate, so not such a big deal. And the document-features crate can be imported with another name, or the macro used.

I'm not so convinced by the suggested names though.

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