Skip to content

Commit

Permalink
[PR] Remove misleading paragraph about other languages.
Browse files Browse the repository at this point in the history
Summary:
OCaml and Elm are probably in equal measure nominally and structurally typed, while Haskell is firmly in the nominally typed camp.
Pull Request resolved: facebook#7126

Reviewed By: gabelevi

Differential Revision: D12945608

Pulled By: fishythefish

fbshipit-source-id: 8490a40a420503f78e3d309e49d8fcb0a93b92e0
  • Loading branch information
iclanzan authored and facebook-github-bot committed Nov 8, 2018
1 parent e729fc1 commit 8a67004
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions website/en/docs/lang/nominal-structural.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ well. Classes (or constructor functions) being the more object-oriented side
and functions (as lambdas) and objects tend to be more on the functional side,
developers use both simultaneously.

Object oriented languages tend to be more nominally typed (C++, Java, Swift),
while functional languages tend to be more structurally typed (OCaml, Haskell,
Elm).

When someone writes a class, they are declaring a _thing_. This thing might
have the same structure as something else but they still serve different
purposes. Imagine two component classes that both have `render()` methods,
Expand Down

0 comments on commit 8a67004

Please sign in to comment.