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: After a day of Zig – a review by a Rust enthusiast

16 pointsby michidkover 1 year ago

2 comments

frankjrover 1 year ago
&gt; While their approach fits well into the C universe, I also dislike that there is no real way to add more context to an error (but well, no allocations).<p>This caught me off guard when I was playing with Zig. What this means is that while you can return an error such as error.InvalidChar (even without explicitly defining it first), you cannot do error.InvalidChar(c) to give back the actual character.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ziglang&#x2F;zig&#x2F;issues&#x2F;2647">https:&#x2F;&#x2F;github.com&#x2F;ziglang&#x2F;zig&#x2F;issues&#x2F;2647</a>
评论 #38819017 未加载
cdaringeover 1 year ago
More snippets would be great!
评论 #38818911 未加载