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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Reflections on leaving Haskell

64 点作者 semmons大约 15 年前

4 条评论

Miky大约 15 年前
I'm not arguing that Haskell can't improve in a lot of ways, but his complaints all seem to stem from attempting to program in Haskell using idioms that don't work well there. If you want to incrementally add to a data structure, use currying, or multiple constructors if that fits better. Don't use Maybes, and definitely don't subclass datatypes. He doesn't really seem to understand monads at all. If you want to log something, use a monad like Writer, not IO.
评论 #1190174 未加载
iman大约 15 年前
The problem with Haskell is that it is way ahead of its time, in kind of the same way that lisp was ahead of its time.<p>lisp had high order functions and garbage collection, and now 30 years later all mainstream languages have these features.<p>Haskell has lazy evaluation, compiler enforced function purity and a type checker that doesn't get in your way. I predict that in 30 years all mainstream languages will have these features.
评论 #1190383 未加载
评论 #1190731 未加载
plesn大约 15 年前
The reasons against Haskell in this article are quite shallow and he would benefit from more knowledge (Why putting functions in the IO Monad to log/write stuff ??).<p>Real reasons I have against Haskell are it's complexity: compare it to the average readability of Python. Often, to resolve a tough problem, you have to upgrade your "level", which can be considered good (you tend to resolve it in an intellectually satisfying way) or bad (others have to understand it...).
评论 #1189473 未加载
评论 #1189334 未加载
jgrant27大约 15 年前
<i>"And without Haskell I would be trapped in Scala-land, writing syntax-sugared-Java, confused about why functional programming was so great…"</i>
评论 #1189595 未加载
评论 #1190292 未加载
评论 #1189569 未加载
评论 #1190324 未加载