5 ms·
Show HN: After a day of Zig – a review by a Rust enthusiast
- cdaringe 3y agoMore snippets would be great!
- michidk 3y agoTrue, I added some more!
- frankjr 3y ago> 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). 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. https://github.com/ziglang/zig/issues/2647 https://github.com/ziglang/zig/issues/2647
- michidk 3y agoThis issue is very interesting, thanks for linking it! Hopefully this will change in future...