2 ms·
> also `String` and `OsString` Because these are different types with different semantics. Why should there be one string type? Languages have to interface w
by duped 3y ago
> also `String` and `OsString`
Because these are different types with different semantics.
Why should there be one string type? Languages have to interface with the real world, where string data could be anything, but programs still need to be written for the common cases... hence, &str and String.