Y
Hacker News
new
|
ask
|
show
|
jobs
by
maleldil
179 days ago
You can achieve this with structural subtyping, such as Go interfaces and Python protocols. Whether that is desirable is a different question.