Skip to content

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

Merged
Hoverbear merged 4 commits intojbaublitz:masterfrom
CreepySkeleton:alternative_syntax
Jan 21, 2020
Merged

Add alternative #[getset(...)] syntax#49
Hoverbear merged 4 commits intojbaublitz:masterfrom
CreepySkeleton:alternative_syntax

Conversation

@CreepySkeleton
Copy link
Contributor

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

Closes #5

@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