<div dir="ltr">I noticed the folks at IBM were also doing platform checks when using the corelibs-xctest APIs. I created <a href="https://bugs.swift.org/browse/SR-1215">https://bugs.swift.org/browse/SR-1215</a> to track the issue.<br><br>corelibs-xctest is small enough that we may want to consider providing *both* Swift 2.2 and Swift 3 APIs, perhaps behind a `#if swift(<3.0)` check.<div><br></div><div>corelibs-foundation provides a much greater API surface, so it may not be feasible. But what does everyone think about this approach for corelibs-xctest?</div><div><br></div><div>- Brian Gesiak</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 12:57 PM, Tony Parker via swift-corelibs-dev <span dir="ltr"><<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>></span> 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">Hi Robert,<div><br></div><div>This is something we really do need some help with. Our goal is to have the Linux version match the Darwin version exactly.</div><div><br></div><div>There is also a PR up to change some of the results of the automatic renaming by the importer, here:</div><div><br></div><div><a href="https://github.com/apple/swift/pull/2093" target="_blank">https://github.com/apple/swift/pull/2093</a></div><div><br></div><div>So we should take those into account as well.</div><div><br></div><div>- Tony</div><div><br><div><blockquote type="cite"><span class=""><div>On Apr 12, 2016, at 9:45 AM, Robert F Dickerson via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>> wrote:</div><br></span><div><div><p><span class=""><font size="4">As you know, currently, as of the 03-24 DEVELOPMENT snapshot, the function signatures for Foundation has diverged. This has caused us to create platform specific calls to the NSString, NSDate, NSCache, etc. classes. For instance,</font><br><br><br>
</span></p><table border="0" cellspacing="0" cellpadding="0"><tbody><tr valign="top"><td width="86" bgcolor="#FFFFFF"><font size="2" color="#333333" face="Consolas">#</font><font size="2" color="#A71D5D" face="Consolas">if</font><font size="2" color="#333333" face="Consolas"> os(Linux) </font></td><td width="559"><span><ecblank.gif></span></td></tr>
<tr valign="top"><td width="86" bgcolor="#FFFFFF"><span><ecblank.gif></span></td><td width="559" bgcolor="#FFFFFF"><font size="2" color="#A71D5D" face="Consolas">let</font><font size="2" color="#333333" face="Consolas"> lastSlash </font><font size="2" color="#A71D5D" face="Consolas">=</font><font size="2" color="#333333" face="Consolas"> fileName</font><font size="2" color="#A71D5D" face="Consolas">.</font><font size="2" color="#333333" face="Consolas">rangeOfString(</font><font size="2" color="#183691" face="Consolas">"/"</font><font size="2" color="#333333" face="Consolas">, options: NSStringCompareOptions</font><font size="2" color="#A71D5D" face="Consolas">.</font><font size="2" color="#333333" face="Consolas">BackwardsSearch)</font></td></tr>
<tr valign="top"><td width="86" bgcolor="#FFFFFF"><span><ecblank.gif></span></td><td width="559" bgcolor="#FFFFFF"><font size="2" color="#333333" face="Consolas">#</font><font size="2" color="#A71D5D" face="Consolas">else</font></td></tr>
<tr valign="top"><td width="86" bgcolor="#FFFFFF"><span><ecblank.gif></span></td><td width="559" bgcolor="#FFFFFF"><font size="2" color="#A71D5D" face="Consolas">let</font><font size="2" color="#333333" face="Consolas"> lastSlash </font><font size="2" color="#A71D5D" face="Consolas">=</font><font size="2" color="#333333" face="Consolas"> fileName</font><font size="2" color="#A71D5D" face="Consolas">.</font><font size="2" color="#333333" face="Consolas">range(of: </font><font size="2" color="#183691" face="Consolas">"/"</font><font size="2" color="#333333" face="Consolas">, options: NSStringCompareOptions</font><font size="2" color="#A71D5D" face="Consolas">.</font><font size="2" color="#333333" face="Consolas">backwardsSearch)</font></td></tr>
<tr valign="top"><td width="86" bgcolor="#FFFFFF"><span><ecblank.gif></span></td><td width="559" bgcolor="#FFFFFF"><font size="2" color="#333333" face="Consolas">#endif</font></td></tr></tbody></table><span class=""><br><br><font size="4">I was curious about the timeline for the migration to the newer APIs and whether someone in particular was working on it. We have some developers here at IBM@Swift that could do some of this work, but want to make sure we aren't duplicating work and are coordinated.</font><br>
</span><p></p></div>
_______________________________________________<br>swift-corelibs-dev mailing list<br><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
swift-corelibs-dev mailing list<br>
<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br>
<br></blockquote></div><br></div>