Re: [go-nuts] [generics] moving the last type parameter to a type outside the square brackets

2021-01-05 Thread 'Anonymous AWK fan' via golang-nuts
Axel, please send your reply to golang-nuts too, you can ignore the rest of this, I already sent it to you but not golang-nuts because I didn't reply to all. > What is the "them" to be omitted if there is only one type parameter? It > wouldn't make sense to omit the brackets (because there need

[go-nuts] [generics] moving the last type parameter to a type outside the square brackets

2021-01-04 Thread 'Anonymous AWK fan' via golang-nuts
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 bec