Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lacyleathers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
lacyleathers
4y ago
If you step outside the generic interface, duck-typing would of course also give you a compiler (or runtime) error. Not sure what scenario you're imagining here.
2.
▲
by
lacyleathers
4y ago
>Mixing up a string for a list of strings, which both satisfy the iterable interface But those are actual valid and useful implementations of the interface, nominative typing wouldn't save you.