Reason/OCaml doesn’t require you to write any import; modules being referred to in the file are automatically我尝试了原因模块系统,但无法理解它是如何工作的。2)我有文件foo.re和定义的模块Foo。我有文件bar.re,想从Foo模块调用函数。我应该在open还是include
我有一个这样的格式化程序代码: let format ff x = Format.fprintf ff "%d" x 它是一个更大的模块ModuleName的一部分,其中包含许多其他函数(让我们称其中一个函数为我知道ff参数应该是输出的方向,比如说Format.std_formatter。但是,在我执行#install_printer ModuleName.format;;,然后运行类似let sum = add 1 2的<