-
Notifications
You must be signed in to change notification settings - Fork 160
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
Any plans for generic retry from 1.18? #58
Comments
Hi, I had thoughts about generics - but I only read this article https://planetscale.com/blog/generics-can-make-your-go-code-slower, and that doesn't sound like I want to add generics everywhere without a deeper analysis of value. Have you please some another example where generic retry helps you? |
Few issues with generics perf in that article are fixed only in 1.19. Like this The only one possible benefit with generics I see now is that you don't need an additional closure on result variable. It's not so much to implement it. Thanks! |
1.19 is out. I vote up for this improvement. |
Please take a look at #91 and tell us what you think. |
It also is important to remember - that this suggestion only helps for functions that return one value. But functions could return 0, or more than 1 of them. Counter suggestion: instead of changing |
I can implement it if you have any plan idea for it. This may reduce the amount of closure.
The text was updated successfully, but these errors were encountered: