On Tuesday, July 5, 2016, Chris Lattner &lt;<a href="mailto:clattner@apple.com">clattner@apple.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jul 5, 2016, at 5:28 PM, Saleem Abdulrasool &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;compnerd@compnerd.org&#39;);" target="_blank">compnerd@compnerd.org</a>&gt; wrote:</div><br><div>On Tuesday, July 5, 2016, Chris Lattner &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;clattner@apple.com&#39;);" target="_blank">clattner@apple.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jul 5, 2016, at 2:59 PM, Brian Gesiak via swift-evolution &lt;<a>swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div dir="ltr"><div><p style="margin:0px 0px 1.2em!important">Sorry to resurrect such an old thread! I understand getting this in Swift 3.0 might not be realistic anymore, but this is still something I’d love to see added to Swift. Could someone advise on whether it still makes sense to spend time on this proposal? Or is this part of Swift too solidified to change at this point?</p></div></div></div></blockquote><div>It is definitely beyond Swift 3.0, but I’d love to see this happen at some point, we really need someone to drive the (surely to be contentious) design process.</div></div></div></blockquote><div><br></div><div>I&#39;m probably going to regret this, but given that I had originally proposed this to Brian and would really like to see this happen, what does this entail?</div><div> </div></div></blockquote><br></div><div>1) get some consensus on list for an overall approach</div><div>2) formalize a proposal and submit a PR to swift-evolution</div><div>3) iterate</div><div><br></div><div>#1 is the hardest I think.  I don’t think a truly minimal wrapper of the POSIX APIs is interesting, I think we should at least make a Swifty POSIX API, which is portable and low-abstraction overhead.  However, it should fix the mistakes of errno and “creat” among other things.</div></div></blockquote><div><br></div>That sounds pretty reasonable.  Especially if we do this earlier, breaking from expectations in terms of mapping for things like &quot;creat&quot; would be less intrusive.<div><br></div><div>Not sure what you had in mind for errno.  It seems like if we have an SDK overlay for posix, we could hide errno, handling it similar to NSError.  However, I think that violates the low overhead.<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>-Chris</div><br></div></blockquote></div><br><br>-- <br>Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org<br>