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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Declarative JavaScript With Functional Programming Tools

36 点作者 combataircraft大约 12 年前

5 条评论

shib71大约 12 年前
You need to explain more - for example what do you mean by a "partial"? A quick search for "partial functions" gave me several links to mathematics articles. When I followed the links to the composition modules I got more of the same impenetrable context-less style.<p>What I did get from the article is something that works a lot like promises:<p>- async functions return type of "eventual" data (in your case, a function you pass a callback to)<p>- various other functions that can operate on that eventual data type to return more eventual data<p>What does this style offer that standard promises doesn't?
评论 #5496343 未加载
评论 #5496152 未加载
bliker大约 12 年前
I think this kind of approach can reduce complexity in JS. Witch is for me by far the biggest problem. Will give it a try.
swah大约 12 年前
Is this from you, combataircraft? Always curious about your style because you always post that EditGrid example :)
评论 #5496170 未加载
efnx大约 12 年前
What about going a little further and writing in a purely functional language like Elm?
ibotty大约 12 年前
hi nice work. it's always nice to have functional programming paradigms in javascript.<p>is there any (technical or political) reason, why this is or will not be part of underscorejs?
评论 #5496015 未加载