Hacker News new | ask | show | jobs
by 9rx 22 days ago
> for want of a better word

Structural typing is the term typically used to describe "static duck typing".

1 comments

I’d describe structural typing as a special case of duck typing FWIW.
I suppose. That special case is that it is evaluated statically, whereas duck typing is evaluated dynamically. That's the whole difference between them. They are otherwise identical concepts.

But who is to say that dynamic evaluation isn't the special case?