2 ms·
Sentinel-terminated arrays and slices have a different type than regular arrays and slices, and the sentinel isn't the terminator for the array or slice, just a
by flohofwoe 5y ago
Sentinel-terminated arrays and slices have a different type than regular arrays and slices, and the sentinel isn't the terminator for the array or slice, just an additional item past the end. I think it's reasonably type-safe:
https://ziglang.org/documentation/0.8.1/#Sentinel-Terminated-Arrays https://ziglang.org/documentation/0.8.1/#Sentinel-Terminated...