Since Go will need to modify interface with new type list anyway. Is it good if we can do this: ``` type Weighter interface { Weight int }
func CompareWeight(type T Weighter) (a, b T) bool { return a.Weight < b.Weight } ``` Instead of: ``` type Weighter interface { GetWeight() int } func CompareWeight(type T Weighter) (a, b T) bool { return a.Weight() < b.Weight() } ``` -- 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/95c781a7-bcc2-4ed3-9063-68a2c3770e1do%40googlegroups.com.