NSURL.standardizingpath is great, why is it not available on
URL? It's a pretty critical function for any path datatype.
I suspect it wasn't imported because the
NSURL.standardizingpath internally calls
NSString.expandingTildeInPath. But that's a pretty weak reason to prevent the import because:
- That's a really simple function. Even without
expandingtildeinpathbeing available on
Swift.String, it's trivial to reimplement in native Swift.
- It doesn't make sense to have path-related operations on
Stringin the first place, if we have a potent path datatype like