3 ms·
People usually add their own or use existing libraries for strings with bounds. All I'd argue is that it's somewhat annoying that C standard library donesn't ha
by megous 7y ago
People usually add their own or use existing libraries for strings with bounds. All I'd argue is that it's somewhat annoying that C standard library donesn't have these, so there are too many variants of basically the same thing out there, because most programs benefit from having strings with (unchecked) bounds.
- david-gpu 7y agoBounded arrays and array sliced should not be part of the stdlib, they should be a primitive type of the language. Only then you can have automatic bounds checking for every array indexing operation.