Interesting find, I would expect type parameter declarations to be limited to interfaces.
On Tuesday, June 16, 2020 at 2:54:02 PM UTC-7, Alexander Morozov wrote: > > For example consider this example https://play.golang.org/p/rfccpBoFIJN > There is no generics involved, but for person reading the code there will > be additional cognitive load to recognize that it's returned closure call > and not generic function call. > I wonder how could we avoid this confusion (apart from using different > brackets :)). Maybe force type keyword in calls as well to show that those > arguments are types? > -- 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/b68edacf-07ab-4dc7-898a-1610204fbddco%40googlegroups.com.