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.

Promises and Lisp

50 pointsby chaitanyaover 10 years ago

5 comments

javajoshover 10 years ago
<i>Debugging is a bit of a challenge with promises.</i><p>Indeed, and that is why I am personally not really that bullish on promises, at least not how they are currently implemented. When you&#x27;re debugging you want access to the implicit state-machine that the promise statement constructed, but at least in JS such state is hidden away in the `then()` function.<p>A good compromise (which I&#x27;m currently exploring in JS) is to make the state-machine navigable from the root, giving you the ability to examine it and mutate it explicitly during a debug session.
评论 #8791226 未加载
评论 #8791208 未加载
anyfooover 10 years ago
Congratulations, you have almost invented Monads! 8)
评论 #8791320 未加载
coldteaover 10 years ago
Doesn&#x27;t async&#x2F;wait solves the same problem in a more elegant way?
thomasfoster96over 10 years ago
Is this some sort of contorted version of Greenspun&#x27;s tenth rule?
chaitanyaover 10 years ago
OP here. I would welcome and feedback or suggestions for the post.
评论 #8790510 未加载
评论 #8790414 未加载
评论 #8791068 未加载
评论 #8790349 未加载
评论 #8791121 未加载