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

"Remember" errors from setters, errWriter style #249

Open
zenhack opened this issue May 22, 2022 · 0 comments
Open

"Remember" errors from setters, errWriter style #249

zenhack opened this issue May 22, 2022 · 0 comments
Milestone

Comments

@zenhack
Copy link
Contributor

zenhack commented May 22, 2022

Per discussion starting at #64 (comment), handling errors for setters is easy to forget and doing it correctly is tedious. It might be nice if messages stored an error, in the style of errWriter: https://go.dev/blog/errors-are-values. This would allow users to check for errors from setters once, at the end.

@zenhack zenhack added this to the 3.0 milestone Jun 28, 2022
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