3 ms·
They got rid of the % operator for error propagation for one.
by rhodysurf 7y ago
They got rid of the % operator for error propagation for one.
- renox 7y agoThat'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
- rhodysurf 7y agoYou can still propagate errors in zig using ? like in rust. they just simplified it
- AnIdiotOnTheNet 7y agoThe operator wasn't removed, it was replaced by a keyword. See the documentation on error handling: https://ziglang.org/documentation/master/#catch https://ziglang.org/documentation/master/#catch