Are there any static duck-typed languages?

前端 未结 15 1021
我寻月下人不归
我寻月下人不归 2020-12-14 10:12

Can I specify interfaces when I declare a member?

After thinking about this question for a while, it occurred to me that a static-duck-typed language might actually

15条回答
  •  自闭症患者
    2020-12-14 10:38

    TypeScript!

    Well, ok... So it's a javascript superset and maybe does not constitute a "language", but this kind of static duck-typing is vital in TypeScript.

    enter image description here

提交回复
热议问题