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.
发布评论
评论(4)
我发现了关于 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.
我听说 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.
从 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!).
有一本关于 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