2 ms·
Is must say this looks pleasant, coming from Kotlin. Also ranges seem to work very similarly. Not sure how I fell about the UB - is it really necessary to opti
by MrBuddyCasino 4y ago
Is must say this looks pleasant, coming from Kotlin. Also ranges seem to work very similarly.
Not sure how I fell about the UB - is it really necessary to optimise away a single length check per loop (not iteration)?
- AnIdiotOnTheNet 4y agoThat's up to the programmer. Zig's default build mode is Debug, and ReleaseSafe is recommended if you don't require extreme performance. Both modes will insert the check. Safety checks can also be enabled or disabled on a scope-by-scope basis if desired.