News for hackers. Stuff that matters.
Re:Is Go Duck-Typed? by nemith on Wednesday March 04, 2020 @02:29PM (#22487070)
I like to call it Quack typing as interfaces are based on behavior and not attributes.
Re:Is Go Duck-Typed? by IshKebab on Wednesday March 04, 2020 @03:43PM (#22487850)
No they aren't, they're matched based on method names.

Go isn't duck typed, except for interfaces which are. Pretty simple.

Re:Is Go Duck-Typed? by throwaway894345 on Wednesday March 04, 2020 @03:01PM (#22487436)
Structural subtyping can be based on attributes a la Python’s Protocols.