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

Provide method to reassign to already set field #4

Open
estebank opened this issue Feb 21, 2022 · 0 comments
Open

Provide method to reassign to already set field #4

estebank opened this issue Feb 21, 2022 · 0 comments

Comments

@estebank
Copy link
Owner

Currently the only way to reassign an already initialized field is through a mutable pointer, under the assumption that assigning to the same field multiple times is a mistake, but for some use-cases, like writing tests this is a useful feature and not a mistake. Provide a separate method to set_foo as a way to make the users' intention clearer.

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

1 participant