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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Haskell vs. C

3 点作者 dmjio将近 12 年前

3 条评论

venomsnake将近 12 年前
From what I know about compilers(not much) - when there is calculation without variables they just compute it on the fly and substitute in the code where possible. And I think this is just what is going on.<p>You should read the n from the input or given as parameter to the program.
评论 #6168524 未加载
helloTree将近 12 年前
I think it would be nice if there will be a world where you can express such a problem in a decidable mini-language where the compiler can deduce that the answer will be n(n+1)&#x2F;2. :)
gems将近 12 年前
So what was the point?
评论 #6168527 未加载