Re:Interview with Zig language creator Andrew Kelley [video]
by pron on Thursday August 27, 2020 @10:05AM
(#24293820)
Sure, and then when you enforce that you address the third most bothersome thing for me in C++, leaving you only with the top two (for me): a complex language and slow compilation.
It also works with iterators-generally by sticking some extra data in the iterator in dev builds, so it can check for out of bounds access.
If I do have some code that uses C pointers + size, I'll insert some dev build assertions.