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.

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

1 pointsby reconquestioalmost 5 years ago

1 comment

karmakazealmost 5 years ago
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 未加载