我是 OCaml 的新手,经常有人建议我使用 Jane Street 的标准库,而不是编译器附带的标准库。
但是,似乎甚至有几个,我不知道我应该使用哪个:
任何人都可以快速总结这些之间的区别(也许与电池等),或者何时以及为什么我应该选择一个而不是其他?
最佳答案
我希望有更博学的人来回答这个问题,但至少这里是它的要点,straight from the horse's mouth :
- Base: minimal stdlib replacement. Portable and lightweight and intended to be highly stable.
- Core_kernel: Extension of Base. More full featured, with more code and dependencies, and APIs that evolve more quickly. Portable, and works on Javascript.
- Core: Core_kernel extended with UNIX APIs.
关于ocaml - Jane Street 的 ‘Base’ 、 ‘Core’ 和 'Core_kernel' 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46532823/