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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Rust's Result(T) in Go with Go Generics

1 点作者 reconquestio将近 5 年前

1 comment

karmakaze将近 5 年前
I&#x27;m not entirely familiar with the Rust type or the latest Go proposal but is there a way to do this without possibility of cleanly compiled source panicking at run time?<p>Something like if Result didn&#x27;t include those possibly panicking functions and wider types ResultOk and ResultErr had the corresponding functions guaranteed not to panic. These types would only be accessible from Result upon checking.
评论 #23656367 未加载