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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Which is the best functional Programming language?

3 点作者 yr将近 15 年前
I'm starting with functional programming language. Which do you suggest? Haskell, Scala, F# or any other. Please list any books.

2 条评论

muyyatin将近 15 年前
I've had experience with both Scala and OCaml (both which allow non-functional programming also). F# is the Microsoft version of OCaml.<p>Scala is easier to learn if you know Java, and has excellent IDE support in both Eclipse and Intellij IDEA. "Programming in Scala" is a good introduction and reference for Scala (<a href="http://www.artima.com/shop/programming_in_scala" rel="nofollow">http://www.artima.com/shop/programming_in_scala</a>), but doesn't cover the new features in Scala 2.8.<p>I had good experiences with OCaml also (which compiles down to machine code, so has the potential to be faster than Scala if performance is critical). I believe it has more advanced tail-recursion optimizations. It seemed that floating point arithmetic was slow because each number had to be stored on the heap separately.
lzw将近 15 年前
My preference is for erlang. I believe it is the only one that does concurrency "right", though I don't know the others well enough to prove it. Any blocking, as in transactional memory or locks is, in my opinion, a real concurrency problem.<p>As I learned erlang and OTP I kept finding design choices I really appreciated.<p>The pragmatic programmers book on erlang was written by the creator of the language and I think is one of the better programming books ever. Clearly he's spent several decades teaching this language to perplexed students, cause he found the right way to illuminate it.