Y
Hacker News
new
|
ask
|
show
|
jobs
by
AndyKelley
2456 days ago
It's actually become simpler and slimmer, with fewer peculiarities!
1 comments
samtheprogram
2456 days ago
Could you follow up with some examples? Seems to contradict the parent but neither comment provides examples.
link
rhodysurf
2456 days ago
They got rid of the % operator for error propagation for one.
link
renox
2456 days 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
link
AnIdiotOnTheNet
2456 days ago
The operator wasn't removed, it was replaced by a keyword. See the documentation on error handling:
https://ziglang.org/documentation/master/#catch
link
rhodysurf
2456 days ago
You can still propagate errors in zig using ? like in rust. they just simplified it
link