---
title: "Comment by David Cuccia on \"Unicorn in C#\" | Hashnode"
description: "It&#39;s one of the places the compiler uses duck-typing...no interface needed. Would be great to have this type of shape-based coding pattern more available to"
url: "https://hashnode.com/posts/unicorn-in-c/615efa44b945c81a907ce8ee/comment/6164d21e18374f25732754b6"
---

[Discussion](https://hashnode.com/posts/unicorn-in-c/615efa44b945c81a907ce8ee)

Comment [Unicorn in C#](https://hashnode.com/posts/unicorn-in-c/615efa44b945c81a907ce8ee)

[David Cuccia](https://hashnode.com/@lightw8)

[Oct 12, 2021](https://hashnode.com/posts/unicorn-in-c/615efa44b945c81a907ce8ee/comment/6164d21e18374f25732754b6)

It's one of the places the compiler uses duck-typing...no interface needed. Would be great to have this type of shape-based coding pattern more available to the developer, sometimes called "structural typing." The father of C#, Anders Hejlsberg, said that the benefits of structural typing was a big take-away for him when he subsequently designed Typescript.
