3 ms·
This sort of stuff is where Iterate Loops are good: https://github.com/google/wuffs/blob/main/doc/note/iterate-loops.md https://github.com/google/wuffs/blob/ma
by tialaramex 4y ago
This sort of stuff is where Iterate Loops are good:
https://github.com/google/wuffs/blob/main/doc/note/iterate-loops.md https://github.com/google/wuffs/blob/main/doc/note/iterate-l...
WUFFS wants this because it demands all the checking at compile time (WUFFS code with a potential buffer overflow just won't compile), so if you need bounds checks you'll be writing them out by hand and the iterate loop often allows you to express a correct solution with no actual checks.