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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Designing JS promises (2011)

56 点作者 ville超过 12 年前

6 条评论

dinduks超过 12 年前
You can read this file with syntax highlighting on GitHub: <a href="https://github.com/kriskowal/q/blob/master/design/README.js" rel="nofollow">https://github.com/kriskowal/q/blob/master/design/README.js</a>
twiceaday超过 12 年前
I thought this was going to be about the sad state of JS. Instead it was an interesting read about JS futures.<p><a href="http://en.wikipedia.org/wiki/Futures_and_promises" rel="nofollow">http://en.wikipedia.org/wiki/Futures_and_promises</a>
philbo超过 12 年前
There's been a lot of talk [1] about promises on es-discuss in the last week or so. It looks like an effort is underway with a view to standardising them as part of the language in the ES7 spec, possibly with a harmonised DOMPromises spec to come sooner than that for use in the W3C recommendation track.<p>The other recent development in this area was the announcement of Promises/A+ [2], an attempt to clarify all of the behavioural aspects of JS promises in a single spec that many implementations can support.<p>All in all, I'd say that things are moving very healthily forward in this regard.<p>[1] <a href="https://mail.mozilla.org/pipermail/es-discuss/2012-November/026188.html" rel="nofollow">https://mail.mozilla.org/pipermail/es-discuss/2012-November/...</a><p>[2] <a href="https://github.com/promises-aplus/promises-spec" rel="nofollow">https://github.com/promises-aplus/promises-spec</a>
ef4超过 12 年前
I can heartily recommend this library. I've been using it extensively both in the browser and in node.
d4mi3n超过 12 年前
Excellent write up. I'd love to see more libraries outline their core design decisions like this!
k3n超过 12 年前
That was an excellent read; very well-executed on the part of the author.