从 Ruby、Lisp、Haskell 和 Erlang 转向 Ocaml

发布于 2024-07-08 04:48:12 字数 1449 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

只想待在家 2024-07-15 04:48:12

我发现了关于 Ocaml 及其与大多数其他语言的关系的优秀资源: http://www.soton.ac.uk/~fangohr/software/ocamltutorial/lecture1.html

它不仅解释了原因,还解释了许多可能在开始时阻碍您的小怪癖。

啊,我找到了一个 cheatsheet 突出显示了几乎所有语法上的怪异之处。

I found an excellent resource on Ocaml and its relation to most other languages: http://www.soton.ac.uk/~fangohr/software/ocamltutorial/lecture1.html

Not only does it explain the why, it also explains many of the little quirks likely to snag you as you begin.

Ah, I found a cheatsheet highlighting almost all of its syntactic weirdnesses.

紫竹語嫣☆ 2024-07-15 04:48:12

我听说 APress Practical OCaml 也很糟糕。

Objective Caml 简介非常优秀,并且具体介绍了一些反 KISS 陷阱,例如类型系统可能是无情的。

I have heard the APress Practical OCaml is awful as well.

Introduction to Objective Caml is excellent and specifically addresses a few anti-KISS gotchas, such as ways the type-system can be unforgiving.

洛阳烟雨空心柳 2024-07-15 04:48:12

从 C++ 背景转向 OCaml,我发现用变体类型替换类是最难的过渡(而且很容易!)。

Coming to OCaml from a C++ background, I found replacing classes with variant types to be the hardest transition (and it was easy!).

终难遇 2024-07-15 04:48:12

有一本关于 Ocaml 的书《Practical Ocaml》虽然不是一本真正的好书,但至少对于入门来说已经足够好了。 这是一种非常实用的语言,不幸的是它的语法“奇怪”。 如果您想看到一些“真实的”Ocaml,那么只需查看“枪战”页面即可。

问候
弗里德里希

There is a book about Ocaml "Practical Ocaml" it's not a really good book, but at least for getting started it's good enough. It's a quite practical language, which unfortunatly a "strange" syntax. If you like to see some "real" Ocaml then just look at the Shootout pages.

Regards
Friedrich

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文