This is a very good proposal. The use of the range keyword does scare me. But I'll get used to it eventually. And I will need a lot more coffee to get my head around the appendix about coroutine optimisations. But overall this will be a very useful addition which will make a lot of code more consistent and more simple.
On Thursday, 4 August 2022 at 01:24:10 UTC+1 Ian Lance Taylor wrote: > I've just opened a discussion for a standard iterator interface. This > is intended to describe a framework that future generic containers > will implement. If you are interested in this topic, please see > https://go.dev/issue/54245. > > We welcome all comments, but please be aware that this is an area that > is wide open for bikeshedding. Before commenting, please make an > effort to ensure that you are not repeating comments that others have > already made. Thanks. > > Ian > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ebdc485f-f4fd-47ff-81e3-fe3d868c516cn%40googlegroups.com.