F#, Nominative or Structural Typed

岁酱吖の 提交于 2019-12-06 20:20:31

问题


Does F# have a Nominative Type System or a Structural Type System?

I know that OCaml is structurally typed, though F# doesn't seems to be so, is this correct?


回答1:


F# is nominative. You can do a few structural tricks via some exotic mechanisms, but the type system of the language is primarily nominative.



来源:https://stackoverflow.com/questions/3137512/f-nominative-or-structural-typed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!