On Wed, Feb 8, 2017 at 5:41 PM, <aindu...@gmail.com> wrote: > satisfies the interface, but requires a type assertion. However, > > func (e E) Less(e2 Element) bool { > return e.value < e2.value > } >
If this version of Less() satisfied the interface Node what happens when I pass something that isn't an Element but also satisfies the Node interface? It gets very complicated to explain what the rules would be in the various possible edge cases. -- 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.