I wonder which is the one comfortable way to program in Ocaml (in MAC).
I am currently using the VSCode to detect the syntactic and type errors, but then I use online interpreters to compile (it creates the ml) and to run examples on it; I mean, to instantiate variables, test examples etc. For example, I use the online: https://try.ocamlpro.com/.
I know this is not the best way to do it: for instance, if a package is not integrated (let us say num
), I cannot do opam install num
and open it.
So I wonder which is a proper option to have both (1) the cool interface like VSCode and (2) compile + test stuff on the fly.
I think I am close with the next option: I write ocaml
in the terminal and then a mode is opened:
OCaml version 4.10.2
#
#
#
...
There, I can write: #open Num;; #open List;; #let...
but I do not know how to load files on it.
Someone also told me there was something called "utop", but I have looked and it seems advanced for me.
Any help is appreciated!