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 alternative #[getset(...)] syntax #49

Merged
merged 4 commits into from
Jan 21, 2020
Merged

Add alternative #[getset(...)] syntax #49

merged 4 commits into from
Jan 21, 2020

Conversation

CreepySkeleton
Copy link
Contributor

This PR adds the alternative #[getset(get, set, ...)] syntax as discussed in #5

Closes #5

src/generate.rs Outdated Show resolved Hide resolved
tests/getset.rs Show resolved Hide resolved
@CreepySkeleton
Copy link
Contributor Author

Closing and reopening to trigger CI run

@CreepySkeleton
Copy link
Contributor Author

Huh?

Hoverbear added a commit that referenced this pull request Jan 21, 2020
@Hoverbear
Copy link
Collaborator

Thanks for this, @CreepySkeleton . :) It LGTM.

Do you think it would be good to remove the 'old way' later?

@Hoverbear Hoverbear merged commit 14bb311 into jbaublitz:master Jan 21, 2020
@Hoverbear Hoverbear added this to the 0.1.0 milestone Jan 21, 2020
@Hoverbear
Copy link
Collaborator

More notably, do you think this should become the documented way in README.md?

@CreepySkeleton
Copy link
Contributor Author

Do you think it would be good to remove the 'old way' later?

I don't think so, those are good shortcuts. The new way should be documented on docs.rs and in the readme.

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

Successfully merging this pull request may close these issues.

Writing multiple attributes in one line?
2 participants