|
|
|
|
|
by Izkata
259 days ago
|
|
Except Typescript embraces duck typing. You can say "accept any object with a quack() method", for example, and it'll accept an unexpected quacking parrot. It can even tell when two type definitions are close enough and merge them. |
|
[0]: https://typing.python.org/en/latest/spec/protocol.html