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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Functional C Programming (Or, why God, why?)

28 点作者 cioc超过 12 年前

7 条评论

danneu超过 12 年前
You should remove the deprecating remarks from your readme/code/headline.<p>Someone will tweet them for you.
thewarrior超过 12 年前
Providing a few macros to add some syntactic sugar could make this much better . On a separate note , theres no need for any self deprecation . I being a beginner found this post quite thoughtful and interesting .Keep going.
评论 #5114188 未加载
bmh100超过 12 年前
Carmack mentioned moving to functional C++ programming recently. <a href="http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/" rel="nofollow">http://www.altdevblogaday.com/2012/04/26/functional-programm...</a><p>Perhaps you are onto something here.
warmwaffles超过 12 年前
Yes, finally a way for me to have more unreadable C code.
评论 #5114369 未加载
mtdewcmu超过 12 年前
No, I never wanted to write C that way. That looks too much like C++, with its std::for_each and things that look potentially useful, until you actually try finding a use for them.<p>What I have wanted is closures that you can stick data inside. But they can't be done in a reasonable way in a language like C. The C++ version falls short of usefulness.
评论 #5115139 未加载
评论 #5114246 未加载
seagaia超过 12 年前
Can you make this into a ruby gem?
评论 #5114091 未加载
joshguthrie超过 12 年前
This is beautiful.
评论 #5114413 未加载