4 ms·
I have felt this pain for sure, but only really once. This is because, in languages with strings as paths I tend to use string manipulation to do operations on
by steveklabnik 7y ago
I have felt this pain for sure, but only really once. This is because, in languages with strings as paths I tend to use string manipulation to do operations on paths, but given that virtually all of my OsString usage is paths, which have specific manipulation functions already it’s lesser.
This is also why the interface isn’t so rich, there just hasn’t been a lot of demand. That said I think some things are in the pipeline?
- ChrisSD 7y agoDo you have any more info about what's in the pipeline?
- steveklabnik 7y agoI thought that someone had recently sent in a PR adding some convenience functions, but I can't find them now, I must be imagining things :(
- edflsafoiewq 7y agohttps://github.com/rust-lang/rust/issues/49802 https://github.com/rust-lang/rust/issues/49802
- edflsafoiewq 7y agoThe most common use for string manipulation on OsString is parsing CLI args like --output=/some/path. See eg. clap/#1524.