TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

OCaml 4.08

128 点作者 mseri将近 6 年前

10 条评论

TheAsprngHacker将近 6 年前
This release adds &quot;binding operators,&quot; which make functors, applicatives, and monads more convenient to use. The &quot;binding operators&quot; are like OCaml&#x27;s version of Haskell&#x27;s do-notation, but IMO even better. In Haskell&#x27;s do-notation, each binding in the form of `pat &lt;- expr; next` desugars to monadic bind, with an extension to use applicatives instead where possible, but with OCaml&#x27;s binding operators, there are three separate operators for functors, applicatives, and monads.<p>The 4.08.0 release also adds the Fun, Option, and Result modules to the standard library.
评论 #20188087 未加载
评论 #20186716 未加载
threwawasy1228将近 6 年前
It doesn&#x27;t get said very much but the ML ecosystem is full, complete, and very much production quality. It is a shame that there are not many projects or companies that make use of all that it has to offer.
评论 #20185431 未加载
评论 #20185513 未加载
评论 #20185488 未加载
评论 #20185619 未加载
评论 #20186407 未加载
评论 #20186078 未加载
andrepd将近 6 年前
I&#x27;m not entirely convinced that the let operators were a good idea. What&#x27;s wrong with the ppx rewriter notation (let%bind = ...)? That&#x27;s, after all, what it&#x27;s for: provide custom extensions to the language syntax.<p>Quality of life improvements in the standard library are maybe the biggest deal for me (since I don&#x27;t use any stdlib replacement like Batteries or Base). Stuff like the Int, Bool, Option, etc. modules, or filter_map... It&#x27;s mind boggling how they&#x27;ve only been added now (but good thing they were).
amelius将近 6 年前
This is great, but I&#x27;m still waiting for multicore support, and a mature GUI library.
评论 #20186917 未加载
评论 #20186742 未加载
willtim将近 6 年前
I&#x27;m a Haskeller, but it&#x27;s great to see OCaml improving significantly with every release. It&#x27;s a win for typed functional programming in general.
melling将近 6 年前
“Many error messages were improved.”<p>A few months ago someone on HN mentioned that error messages would be greatly improved in this release, which would make learning OCaml much easier.<p>Does anyone have more details on this?
评论 #20185689 未加载
评论 #20185561 未加载
bitmadness将近 6 年前
If they had Unicode support and multicore support in the language I&#x27;d be a lot more interested.. hopefully in five or ten years we&#x27;ll get there.
mlevental将近 6 年前
anyone know a good ide for ocaml? something with tab complete and jump to definition?
评论 #20185678 未加载
评论 #20185703 未加载
评论 #20186472 未加载
评论 #20190569 未加载
评论 #20185582 未加载
jpittis将近 6 年前
Does anyone have any links to examples or docs for how the “binding operators” work?
评论 #20186150 未加载
asplake将近 6 年前
Getting a 404 here: You can find more details at <a href="https:&#x2F;&#x2F;ocaml.org&#x2F;releases&#x2F;4.08.0.html" rel="nofollow">https:&#x2F;&#x2F;ocaml.org&#x2F;releases&#x2F;4.08.0.html</a>
评论 #20185261 未加载