Hacker News new | ask | show | jobs
by teaearlgraycold 63 days ago
Structural typing is great. It's the verified version of duck typing.
1 comments

You can even get nominal typing with branded types if you need it. (Like for the newtype pattern)