<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Resurrecting this discussion since <span style="font-size:12.8px">the question of &quot;why does Android import Glibc?&quot; came up on this swift-corelibs-foundation pull request: <a href="https://github.com/apple/swift-corelibs-foundation/pull/622#discussion_r77848100">https://github.com/apple/swift-corelibs-foundation/pull/622#discussion_r77848100</a></span></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>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?</div></div></blockquote><div><br></div><div>When I first proposed the idea, I simply wanted to turn these five lines:<br><br><div style="font-size:12.8px">    #if os(Linux) || os(FreeBSD) || os(Android) || os(PS4)</div><div style="font-size:12.8px">        import Glibc</div><div style="font-size:12.8px">    #else</div><div style="font-size:12.8px">        import Darwin</div><div><span style="font-size:12.8px">    #endif</span><br><br><span style="font-size:12.8px">Into this one line:</span><br><br><span style="font-size:12.8px">    import WhateverNameWeDecideUpon<br><br>After all, writing five lines of code for the import is painful, and the list of `#if os(...) || os(...) || ...` is always expanding.<br><br>I hadn&#39;t thought about a unified overlay for POSIX. I think the simplified import alone has benefit to warrant its own evolution proposal. Would it be possible to have a separate discussion for the POSIX overlay idea? Or is there a reason that I&#39;m missing that prevents the import from being viable on its own? (Apologies in advance if there&#39;s an obvious answer to this question!)</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">- Brian Gesiak</span></div><div><span style="font-size:12.8px"><br></span></div></div></div></div>