3 ms·
Can you give an example of a situation where you’re not sure what string type to use?
by School-Cotton 2y ago
Can you give an example of a situation where you’re not sure what string type to use?
- jbhn 2y agoI think Library APIs are a good example. I've found myself in the situation where I do not care about the string representation (or can convert in a few places if necessary), but need to provide an interface for others that is as frictionless as possible. My instinct there was to be generic and use From/To traits, but it never felt quite right.