Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
samtheprogram
6y ago
0 comments
Save
Share
Could you follow up with some examples? Seems to contradict the parent but neither comment provides examples.
0 comments
4 comments · 1 top-level
top
newest
oldest
rhodysurf
6y ago
· 3 in thread
They got rid of the % operator for error propagation for one.
renox
6y ago
That's funny; one selling point of rust is the easy propagation of errors thanks to the '?' but zig removed the % which was the equivalent I think
AnIdiotOnTheNet
6y ago
The operator wasn't removed, it was replaced by a keyword. See the documentation on error handling:
https://ziglang.org/documentation/master/#catch
rhodysurf
6y ago
You can still propagate errors in zig using ? like in rust. they just simplified it
j
/
k
navigate · click thread line to collapse