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.

Defer, Panic, and Recover - Go blog

40 pointsby pufuwozualmost 15 years ago

1 comment

thristianalmost 15 years ago
That's odd. It's clearly a system <i>like</i> exception-throwing, but without the ability to distinguish from different kinds of errors (say, one might be able to recover from "received malformed input" but not from "array index out of bounds"), and still requiring that programmers check the error return value of most functions they call.<p>I wonder why they preferred that approach over the Java/Python approach to exceptions.
评论 #1577621 未加载
评论 #1577777 未加载
评论 #1577140 未加载
评论 #1577099 未加载
评论 #1579625 未加载