I'm new to OCaml and I wonder how this statement works:
# 1 + 1 ;;;;
- : int = 2
# 1 + 1 ;;;;;;;;
- : int = 2
Is the ;;;; considered as combining 1+1 with blankas in (((1 + 1);););;? Or is ;;;; treated as a multi-character in some other way?
As discussed here,
;;in the top-level REPL ignores everything after it. The double semicolon isn't required when writing code to files and compiling them. To quote Daniil Baturin's What I wish I knew when learning OCaml,The revised syntax of Ocaml gets rid of
;;with the following argument: