Hacker News new | ask | show | jobs
by jamiejquinn 34 days ago
I appreciate Zig's approach, where the runtime complains when over/underflow occurs with the regular `+` operator but explicitly wraps with `+%` (or even saturates with `+|`). Takes a little getting used to (that and explicit unsigned/signed casts) but it's much clearer.
1 comments

Sounds quite interesting! I do prefer to be explicit in low level programming.