13

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?

Abel
  • 56,041
  • 24
  • 146
  • 247
Neo
  • 888
  • 1
  • 7
  • 19

1 Answers1

18

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

Brian
  • 117,631
  • 17
  • 236
  • 300