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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Defer, Panic, and Recover - Go blog

40 点作者 pufuwozu将近 15 年前

1 comment

thristian将近 15 年前
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 未加载