Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F#, Nominative or Structural Typed

Tags:

f#

typing

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?

like image 570
Neo Avatar asked Jun 29 '10 02:06

Neo


1 Answers

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

like image 99
Brian Avatar answered Sep 19 '22 05:09

Brian