2 ms·
Go doesn't support overloading. Method dispatch is done by name only. http://golang.org/doc/faq#overloading http://golang.org/doc/faq#overloading
by usea 13y ago
Go doesn't support overloading. Method dispatch is done by name only.
http://golang.org/doc/faq#overloading http://golang.org/doc/faq#overloading
- statusgraph 13y agoIt doesn't work :) http://play.golang.org/p/PVS5sarmHb http://play.golang.org/p/PVS5sarmHb
- dragonwriter 13y agoBut interface satisfaction is by signature, not name, and that is what is being discussed, not method dispatch.
- usea 13y agoSorry, I didn't mean to conflate the two. Thanks for the clarification.