Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
samtheprogram
6y ago
0 comments
Share
Could you follow up with some examples? Seems to contradict the parent but neither comment provides examples.
0 comments
default
newest
oldest
rhodysurf
6y ago
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