Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
AndyKelley
· 7y ago · 0 comments
It's actually become simpler and slimmer, with fewer peculiarities!
Comments
[–]
samtheprogram
7y ago
Could you follow up with some examples? Seems to contradict the parent but neither comment provides examples.
[–]
rhodysurf
7y ago
They got rid of the % operator for error propagation for one.
[–]
renox
7y 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
7y 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
7y ago
You can still propagate errors in zig using ? like in rust. they just simplified it