Comment

Comment by rando14775

When will they add a slice (fat pointer) type? I.e. a generic version of

> 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.

parent rando14775 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton