FAQ
After all these years, this excellent question is still not clearly
answered... This point of the language makes this design decision really
unclear when beginning. Because method calls on method receivers are
statically resolved, while method calls on arguments whose types are
interfaces are dynamically dispatched and statically checked (compile-time
error when the expected interface is not implemented). So this question
really needs more attention and a more straightforward design rule. Mix in
type embedding and you end up with a mental node ><

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 1, '16 at 7:34p
activeMar 1, '16 at 7:34p
posts1
users1
websitegolang.org

1 user in discussion

Julio Nemesis: 1 post

People

Translate

site design / logo © 2021 Grokbase