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.

Ask HN: Why aren't exceptions in JavaScript used often?

1 pointsby altern8over 9 years ago
I always see &quot;success&quot; and &quot;error&quot; callback functions in JavaScript code and libraries.<p>Why aren&#x27;t exceptions used more often, so that one would only need to pass a callback function, and wrap everything in a &quot;try&quot; statement?

1 comment

crocalover 9 years ago
This is quite good: <a href="http:&#x2F;&#x2F;programmers.stackexchange.com&#x2F;questions&#x2F;144326&#x2F;try-catch-in-javascript-isnt-it-a-good-practice" rel="nofollow">http:&#x2F;&#x2F;programmers.stackexchange.com&#x2F;questions&#x2F;144326&#x2F;try-ca...</a>
评论 #10634823 未加载