Re: [go-nuts] Awkwardness around built in containers and user containers

2020-06-17 Thread David Riley
On Jun 17, 2020, at 8:45 PM, Ian Lance Taylor wrote: > > On Wed, Jun 17, 2020 at 9:35 AM wrote: >> >> How do I write a function that can take any container? Either a built in >> container or a user defined structure? Java is awkward when deciding to >> accept arrays or the List type — is go f

Re: [go-nuts] Awkwardness around built in containers and user containers

2020-06-17 Thread Ian Lance Taylor
On Wed, Jun 17, 2020 at 9:35 AM wrote: > > How do I write a function that can take any container? Either a built in > container or a user defined structure? Java is awkward when deciding to > accept arrays or the List type — is go fated to repeat this awkwardness? It is as you fear: Go does not