2 ms·
> A string should be viewed as an opaque data type with views into it depending on what you're trying to do. > The attribute shouldn't be 'length' it should be
by prng2021 3y ago
> A string should be viewed as an opaque data type with views into it depending on what you're trying to do.
> The attribute shouldn't be 'length' it should be something like 'countOfCodePoints' or exposed via a `CodePoints` type view.
That’s a great way to explain it and something I’ll keep with me. Thanks