ocaml - Jane Street 的 ‘Base’ 、 ‘Core’ 和 'Core_kernel' 有什么区别?

标签 ocaml standard-library reason ocaml-core

我是 OCaml 的新手,经常有人建议我使用 Jane Street 的标准库,而不是编译器附带的标准库。

但是,似乎甚至有几个,我不知道我应该使用哪个:

  • Base ,
  • Core ,
  • Core_kernel .

  • 任何人都可以快速总结这些之间的区别(也许与电池等),或者何时以及为什么我应该选择一个而不是其他?

    最佳答案

    我希望有更博学的人来回答这个问题,但至少这里是它的要点,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/

    相关文章:

    C 标准一致性 - 标识符

    ocaml - 找不到记录字段注释

    ocaml - 如何制作可在Windows和Linux上运行的OCaml字节码

    OCaml 预计有类型单元

    ocaml - 在匹配表达式中调用 2 个或多个函数

    python - 是否可以使用标准库(没有额外模块)最小化 python 中的控制台?

    c++ - 用基数排序实现 std::sort 的重载是否合法?

    django - graphql reason-apollo - 选项的递归解析

    monads - ReasonML 是否具有等效于 F# 的计算表达式?

    ocaml - 我可以定义一个返回自己的OCaml函数吗?