by rando14775 · 4y ago · 0 comments
> struct T_slice { T* ptr; size_t len; };
with all the syntactic sugar and bounds checks added in. This could catch so many out of bounds issues and doesn't seem that hard to do.
int arr[..];
syntax for such things. But, our plates are full and the proposal wasn't written: it'll be up for next release, for sure, and it's one of the many things I would like to put in the language.