Open hajimehoshi opened 1 month ago
https://github.com/golang/go/issues/61897
Iterators will be introduced as of Go 1.23 (hopefully). Let's replace the current APIs with it. Especially, we can replace Append* functions.
Append*
Iterators are more general than append* functions.
Iterators may be slower than append*() functions. They are also harder to understand and debug.
append*()
Could you elaborate more?
Sure - https://valyala.medium.com/go-evolves-in-the-wrong-direction-7dfda8a1a620
Thanks, but this doesn't measure the performance.
https://github.com/golang/go/issues/61897#issuecomment-2162653290
Operating System
What feature would you like to be added?
https://github.com/golang/go/issues/61897
Iterators will be introduced as of Go 1.23 (hopefully). Let's replace the current APIs with it. Especially, we can replace
Append*
functions.Why is this needed?
Iterators are more general than append* functions.