Hacker Read
top
|
best
|
new
|
newcomments
|
leaders
|
about
|
bookmarklet
login
aaronblohowiak | karma 7361 | avg karma 2.49
2010-11-17 04:18:24+00:00
|
next
[–]
update item
IIRC, the duck-type mode uses implicit interface creation but you can force an explicit interface if you want (please correct me if i am wrong.)
reply
view as:
tree
latest_first
BarkMore | karma 1452 | avg karma 4.82
2010-11-17 04:25:56+00:00
|
next
[–]
similar comments
Interfaces are explicitly defined in Go as they are in Java. The difference is that you do not declare the interfaces implemented by a type. If a type has methods that match an interface, then the type implicitly implements the interface.
reply
aaronblohowiak | karma 7361 | avg karma 2.49
2010-11-16 23:31:42
|
next
[–]
similar comments
Oooooh, that makes sense. Thanks for the clarification.
reply
Legal
|
privacy
reply