TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

28 pointsby ciocover 12 years ago

7 comments

danneuover 12 years ago
You should remove the deprecating remarks from your readme/code/headline.<p>Someone will tweet them for you.
thewarriorover 12 years ago
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 未加载
bmh100over 12 years ago
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.
warmwafflesover 12 years ago
Yes, finally a way for me to have more unreadable C code.
评论 #5114369 未加载
mtdewcmuover 12 years ago
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 未加载
seagaiaover 12 years ago
Can you make this into a ruby gem?
评论 #5114091 未加载
joshguthrieover 12 years ago
This is beautiful.
评论 #5114413 未加载