I see that interface{} is used in go's container/list
https://golang.org/src/container/list/list.go
In using this container am I expected to type assert the element's Value?
And is this pattern of returning an interface{} and then "casting" it
typically accepted in practice to avoid duplication
Thanks for confirming!
On Tuesday, August 30, 2016 at 5:16:45 PM UTC-7, Ian Lance Taylor wrote:
>
> On Tue, Aug 30, 2016 at 4:11 PM, >
> wrote:
> >
> > I see that interface{} is used in go's container/list
> > https://golang.org/src/container/list/list.go
> >
> > In using this container