Greg Wooledge (2018-04-03):
> When you're trying to display one on a screen, or print one on paper.

With just the length? You will not get anything done. To properly
display a string, you need to handle ligatures, right-to-left, kerning,
etc. The length of the string is barely relevant.

> When you've been asked to find the longest/shortest string from a list.

Why would that be useful?

> When you've been asked to sort a list of strings by length.

Why would that be useful?

> Or in other words, basically every time you do anything with the string
> at all other than blindly byte-copying it to a different place in memory.

No, the length of the string is hardly relevant, and when it is it is
not enough anyway.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

Reply via email to