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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Scala: A Postfunctional Language

35 点作者 davidblair超过 15 年前

3 条评论

jerf超过 15 年前
This isn't describing "post-functional", it's just plain old "multiparadigm". Multiparadigm languages generally have a "base" language type that is at least slightly preferred or possibly what everything else compiles down to, with the tradeoff that anything you can't get without being "pure" in some paradigm won't be available to you. In practice this is often a good choice.<p>Lisp, Python, C++, Perl, it's a pretty well-populated space and nothing in that article leads me to believe that there's any particular innovation in the paradigm arena there. That is not to say the language itself is good or bad, just that this article is based on a really weird premise.
评论 #1069003 未加载
评论 #1069247 未加载
ekiru超过 15 年前
I'm a little disappointed that the article suggests that the IO monad makes Haskell impure. While it is certainly true that unsafePerformIO violates purity(and type safety, as well), without it, IO is perfectly pure. It's just that if an IO a value happens to end up in main or something referenced from main, input and output happen. From the language's perspective, the IO monad functions could all be perfectly pure and have no relation to input or output(putStrLn could be a no-op, input functions could always return the same thing). It would be utterly useless for its intended purpose, but there would be no difference in terms of its purity.
评论 #1069014 未加载
timwang超过 15 年前
For me, scala is too complicated.... now I am reading "programming clojure" and it is more fun so far