[swift-evolution] Pitch: URL(fileURLWithPath:) to URL(filePath:)

Charles Srstka cocoadev at charlessoft.com
Fri Aug 5 20:24:27 CDT 2016


> On Aug 5, 2016, at 7:32 PM, Erica Sadun <erica at ericasadun.com> wrote:
> 
> There are many, many of these and it would be great to find out how to request them. I suspect the window of opportunity has passed for code-breaking changes though.

I do, too, but I figured it doesn’t hurt to try. If there is some small chance that this can still be changed, it would save us all a nasty case of carpal-tunnel syndrome from typing this unnecessary construction all the way from now to eternity. “fileURLWithPath:” is extremely verbose and redundant for something that is used so often, and it's the one thing that I’ve always hated about the URL-based file APIs. I’m kicking myself for not thinking to request this earlier, but better late than never, I suppose.

Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160805/aafe9ee1/attachment.html>


More information about the swift-evolution mailing list