Is Elixir Structural or Nominal Typing?

I was wondering, Elixir is a Structural or Nominal Typing?

Neither, as to my understanding this difference only exists in statically typed languages.

2 Likes

What @NobbZ said is technically true, but by using dialiyzer you get Structural Positive Typing, and Elixir itself via Structs has kind of a weak form of Nominal Typing (and the fact that so much of Elixir uses so many Structs for this very reason shows just how badly Elixir really could use a static typing system…)

4 Likes