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 of larger code? 

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to