Hi !
At the beginning of Js_of_ocaml form.ml file, there is
open! Import
What does that mean ? (as there are no import.ml file, but js_of_ocaml__Import.cmi, .cmt and .cmx, I imagine it imports modules from those files, but I would like to understand)
Thanks !
Just in case you’re also asking about the ! after open, open M brings all of the items in the module M into scope. The compiler will warn you if this open statement is unneeded, that is if you don’t use any of the items in M. However, using open! M instead will prevent this warning.