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

#TooVerbal #3111

Closed
sankar-boro opened this issue Apr 16, 2021 · 3 comments
Closed

#TooVerbal #3111

sankar-boro opened this issue Apr 16, 2021 · 3 comments

Comments

@sankar-boro
Copy link

Instead of writing #[derive(Clone, Debug)] can we do something like #Clone#Debug. Modern syntax for modern programming language. Right now #[derive(Clone, Debug)] is too verbal.

@SOF3
Copy link

SOF3 commented Apr 16, 2021

Then what do you suggest to happen to attributes?
Nevertheless, I agree that attribute macros and derive macros do not need an explicit separation. Derive macros could totally be implemented as attribute macros, just with the guarantee that they do not modify the annotated item itself, but this is not necessarily something that the user cares.

@steveklabnik
Copy link
Member

It is unlikely we will make this change, though anyone could make an RFC for it if they wished.

@kennytm
Copy link
Member

kennytm commented Apr 20, 2021

see also #208 and #386 for previous (failed) attempts.

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

4 participants