Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Statically typed with duck typing is called structural typing. (As opposed to nominal typing, with inheritance hierarchies).

It’s already what you get with python and mypy. Using typing.Protocol or Unions.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: