2 ms·
Like almost everything in software development it's a trade-off, length + pointer means that your data structures become bigger and that often you will use more
by legulere 5y ago
Like almost everything in software development it's a trade-off, length + pointer means that your data structures become bigger and that often you will use more registers. That used to matter more than it does today.
- kaba0 5y agoI don’t believe it mattered that much even at the time. Having to calculate the length of the string by iterating over it at each string operation was and is much more wasteful and slow. It is simply a stupid decision.