Structural (sub-)typing or Implicit interfaces #9094
Unanswered
gulshan
asked this question in
Language Ideas
Replies: 1 comment 4 replies
-
TypeScript uses structural typing because there is no typing in JavaScript. It has to act as facade to describe existential members in the wild. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This are basically interfaces which are implemented implicitly by having the members.
This will bring a degree of flexibility to C#. C# will still be statically typed with this.
This is how types work in TypeScript.
The syntax can simply be adding the
implicit
keyword as a modifier for interfaces.Beta Was this translation helpful? Give feedback.
All reactions