Hacker News new | ask | show | jobs
by umanwizard 461 days ago
Can you give an example of a situation where you’re not sure what string type to use?
1 comments

I 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.