Are there any static duck-typed languages?

前端 未结 15 1020
我寻月下人不归
我寻月下人不归 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:44

    D (http://dlang.org) is a statically compiled language and provides duck-typing via wrap() and unwrap() (http://dlang.org/phobos-prerelease/std_typecons.html#.unwrap).

提交回复
热议问题