ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

Explain `bin` and `lib` folder naming convention

Open cuihtlauac opened this issue 1 year ago • 0 comments

In Unix folders named:

  • bin contains compiled executable files (e.g. /bin or /usr/bin)
  • lib contains compiled library files (e.g. /lib or /usr/lib)

In OCaml/Dune projects those folders often contain sources corresponding to executables or libraries.

Tutorials on executables, libraries, modules and Dune should clarify this.

From: https://discuss.ocaml.org/t/sorry-not-getting-it-with-mli/14883

Also, tutorials use Dune without explaining the role of the _build folder, which is problematic.

cuihtlauac avatar Jul 01 '24 06:07 cuihtlauac