News for hackers. Stuff that matters.
Re:Half a decade with Go by kaoD on Tuesday November 11, 2014 @07:51AM (#8589537)
So, compile-time duck typing.
Re:Half a decade with Go by dllthomas on Tuesday November 11, 2014 @10:07AM (#8590117)
So, wikipedia says (http://en.wikipedia.org/wiki/Duck_typing#Structural_type_sys...):

"Duck typing is similar to but distinct from structural typing. Structural typing is a static typing system that determines type compatibility and equivalence by a type's structure, whereas duck typing is dynamic and determines type compatibility by only that part of a type's structure that is accessed during run time."

So it sounds like "duck typing" is defined in terms of run-time semantics. I guess you might be able to have genuine "compile-time duck typing" in a dependently typed language, which could be a good reason to preserve the distinction.

Otherwise, yes, they are certainly similar.

Re:Half a decade with Go by tel on Tuesday November 11, 2014 @08:52AM (#8589740)
In the same Formula 1 is performance go-karting.
Re:Half a decade with Go by coldtea on Tuesday November 11, 2014 @08:55AM (#8589749)
No, structural typing. It has a name already.