logoalt Hacker News

teaearlgraycoldyesterday at 5:54 PM1 replyview on HN

Structural typing is great. It's the verified version of duck typing.


Replies

LelouBiltoday at 1:49 AM

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