4 ms·
Embedding the length means you cannot slice strings. To get a substring one has to reallocate. Of course, null termination also means that slicing is restricte
by WalterBright 5y ago
Embedding the length means you cannot slice strings. To get a substring one has to reallocate.
Of course, null termination also means that slicing is restricted to being a tail.