Reading sync.Map[string]linked.List string
I have no idea what that represents? 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. > On Jan 4, 2021, at 2:39 PM, 'Anonymous AWK fan' via golang-nuts > <golang-nuts@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+unsubscr...@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/1DA468A5-D811-429A-8BF3-BED6D7FB6A83%40ix.netcom.com.