>On Friday 30 August 2024 at 12:05:33 UTC+2 Christoph Berger wrote: >Opinionated answer: If a container type cannot iterate over its elements without fail, I would refrain from trying to build a standard iterator for this container type. You'd be shoehorning a >iterator that can fail into the iter API that is not designed for dealing with errors.
Hi, in my opinion, its same as with channels. Channels dont have first class error support, but that doesnt mean they are not supposed to be used with things that can error. -- 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/4c57dab4-d2ca-47f8-be81-5f8a4ba6f378n%40googlegroups.com.