Chapter 8. F# Vs. Ocaml

F# features compared with Ocaml are:

  1. duplicate definition is not allowed in F#.

  2. loosened type system

    1. null value

    2. overloading

    3. dynamic type checking and conversion

  3. no label or optional arguments

  4. does not support Object-oriented features

  5. interoperability with .NET

  6. debugging

  7. support utf-8

8.1. String

String type is immutable which is different from Ocaml's string.

String can be null if it is retruned by .NET API so you have to check the nullness of this value.