News for hackers. Stuff that matters.
Re:Why people are angry over Go 1.23 Iterators by MarkMarine on Monday June 17, 2024 @10:13PM (#40713444)
It’s called out in the proposal, but generics allow custom container types to be created like ordered map. Iterators allow nice methods to be created by designers of these containers types, and used in a way that is similar to the go collections like map and slice. Mentioned earlier in the comments, someone brought up in order tree traversal as well.

I don’t see an issue having the for range syntax that works magically for go std lib containers extended to custom containers, especially since go std lib omits so many valuable containers

There are no comments on this comment yet.