[swift-evolution] [Draft] Unify "import Darwin/Glibc" to simply "Libc"

Chris Lattner clattner at apple.com
Thu Jul 7 17:38:39 CDT 2016

> On Jul 6, 2016, at 4:35 PM, David Waite <david at alkaline-solutions.com> wrote:
> I see two possible approaches:
> 1. A “import Libc” imports the platform libraries, whatever they may be, on the OS platform you are on.
> 2. The OS platform libraries are divided up, virtually if necessary, to expose the underlying standard interfaces without platform-specific extensions. I imagine that would look similar to https://gist.github.com/dwaite/c7125680def834e93ba1fae8873ce1f8: <https://gist.github.com/dwaite/c7125680def834e93ba1fae8873ce1f8:>
I think that it is also important to ask what the real goal here is.  Foundation is our cross platform compatibility layer, are there specific deficiencies in the Foundation API that cause a problem here, or is it just that not all of corelibs Foundation is “done” yet?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160707/8bc482e8/attachment.html>

More information about the swift-evolution mailing list