4 ms·
With all due respect, > No awareness of encoding > Single-byte length field > Scratch that, 254. is completely wrong. Or rather, hasn't been right for several
by vintagedave 8y ago
With all due respect,
> No awareness of encoding
> Single-byte length field
> Scratch that, 254.
is completely wrong. Or rather, hasn't been right for several decades.
A modern Delphi String has unlimited length (well, 32-bit value, a multi-gigabyte string is okay for 1996, I think), carries encoding (see my comment in this same thread), etc.
COW is another argument, but one that seems to have won out over time. Many string implementations use many tricks to achieve something similar, or go with COW directly.