Learning ocaml through a f# book?

There are plenty of online resources on OCaml (Real world Ocaml, Think Ocaml) why not use them.
For any one else looking for an answer to this same question well I am not an F# expert not even and intermediate developer but I have been lookin into it and F# has some syntactical differences that would not get you by in OCaml world. for example

let mutable name = "Richard";;

The above code will never work in OCaml because variables can not be made mutable. However it works in F# Compiler.
Not to mention the difference of libraries and functions like printfn vs Printf.printf. F# uses printfn extensively in teaching where in OCaml you would use print_int, print_string or print_float for respective datatypes

1 Like