On Monday, January 4, 2021 at 5:23:06 PM UTC-5 ren...@ix.netcom.com wrote:
> Reading > > sync.Map[string]linked.List string > > I have no idea what that represents? > If you can read sync.Map[string]chan string then you can read "sync.Map[string]linked.List string" too. > > What if you had a map of maps - which is a very common data structure - > possibly with completely different key and value types? Really any nested > data structures with multiple types would be impossible to read IMO. > In map[k1]map[k2]map[k3]v3 and map[k1, map[k2, map[k3, v3]] which is more readable? > > > > > > > On Jan 4, 2021, at 2:39 PM, 'Anonymous AWK fan' via golang-nuts < > golan...@googlegroups.com> wrote: > > > > I think something like sync.Map[string]linked.List string is more > readable than sync.Map[string, linked.List[string]]. > > > > I propose putting the last type parameter to a generic type after the > square brackets and omitting them when there is only one type parameter. > > > > -- > > 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...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/125582361.510700.1609792751744%40ichabod.co-bxl. > > > > -- 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/8fcbc746-5f61-4b7c-9b7c-601e37bed94an%40googlegroups.com.