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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Screencast: Hole-driven Haskell

4 点作者 clinton大约 12 年前

1 comment

tikhonj大约 12 年前
I think this sort of interactive development is a very good direction for type systems to take. A good type system not only precludes a wide range of annoying errors but also makes the language more expressive (e.g. typeclasses) and can even be an aide in developing the program in the first place.<p>For example, I imagine a tool like Hoogle* would be really awesome: you give it a type and it suggests how to compose functions to get that type. I know somebody implemented this for Java, but I think it would be more powerful and easier in a language like Haskell.<p>The important idea is to use type systems for more than just preventing errors, as these type holes show.