<div dir="ltr">I think a compile-time failure is appropriate and most helpful to a developer.</div><div class="gmail_extra"><br><div class="gmail_quote">On 2 August 2017 at 09:38, Alex Blewitt via swift-corelibs-dev <span dir="ltr">&lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>&gt;</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;line-break:after-white-space"><span class=""><br><div><blockquote type="cite"><div>On 28 Jul 2017, at 20:30, Alex Blewitt via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><div><div style="font-family:Helvetica;font-size:18px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:18px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">In the meantime I&#39;ll take a stab next week at proposing some unavailability annotations for some of the stuff which almost certainly doesn&#39;t make sense, to do with Mach ports and NSZone. </div></div></blockquote><br></div></span><div>I&#39;ve created a pull request which adds NSUnsupported, and uses that to wrap NSPort and NSMessagePort:</div><div><br></div><div><a href="https://github.com/apple/swift-corelibs-foundation/pull/1150" target="_blank">https://github.com/apple/<wbr>swift-corelibs-foundation/<wbr>pull/1150</a></div><div><br></div><div>What do you think? Should we use &#39;deprecated&#39; (so that it&#39;s a warning) or &#39;unavailable&#39; (so that it&#39;s a compile time error)?</div><div><br></div><div><table class="m_2163162726180100877diff-table m_2163162726180100877tab-size" style="box-sizing:border-box;border-spacing:0px;width:978.4000244140625px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-code-addition m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"></td></tr><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-code-addition m_2163162726180100877is-hovered m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"><span class="m_2163162726180100877blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">+    <span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">@available</span>(<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">*</span>,<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">deprecated</span>,<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">messag<wbr>e</span>:<span class="m_2163162726180100877pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="m_2163162726180100877pl-pds" style="box-sizing:border-box">&quot;</span>Not available on non-Darwin platforms<span class="m_2163162726180100877pl-pds" style="box-sizing:border-box">&quot;</span></span>)</span></td></tr><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-num-addition m_2163162726180100877blob-num m_2163162726180100877empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(205,255,216);border-color:rgb(190,245,203)"></td><td id="m_2163162726180100877diff-8bf7bfc80743d7354cec7f95dc553c89R81" class="m_2163162726180100877blob-num-addition m_2163162726180100877blob-num m_2163162726180100877js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(205,255,216);border-color:rgb(190,245,203)"></td><td class="m_2163162726180100877blob-code-addition m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"><button class="m_2163162726180100877add-line-comment m_2163162726180100877btn-link m_2163162726180100877js-add-line-comment m_2163162726180100877js-add-single-line-comment" type="button" style="font-family:inherit;font-size:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:21px;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border:0px;float:left;width:22px;height:22px;background-image:linear-gradient(rgb(3,114,239),rgb(3,102,214));border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;opacity:0"><u></u><u></u><u></u><u></u></button><span class="m_2163162726180100877blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"></span></td></tr></tbody></table><table class="m_2163162726180100877diff-table m_2163162726180100877tab-size" style="box-sizing:border-box;border-spacing:0px;width:978.4000244140625px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-code-addition m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"></td></tr><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-code-addition m_2163162726180100877is-hovered m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"><span class="m_2163162726180100877blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap">+    <span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">@available</span>(<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">*</span>,<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">unavailable</span>,<span class="m_2163162726180100877pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">messa<wbr>ge</span>:<span class="m_2163162726180100877pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="m_2163162726180100877pl-pds" style="box-sizing:border-box">&quot;</span>Not available on non-Darwin platforms<span class="m_2163162726180100877pl-pds" style="box-sizing:border-box">&quot;</span></span>)</span></td></tr><tr style="box-sizing:border-box"><td class="m_2163162726180100877blob-num-addition m_2163162726180100877blob-num m_2163162726180100877empty-cell" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(205,255,216);border-color:rgb(190,245,203)"></td><td id="m_2163162726180100877diff-8bf7bfc80743d7354cec7f95dc553c89R81" class="m_2163162726180100877blob-num-addition m_2163162726180100877blob-num m_2163162726180100877js-linkable-line-number" style="box-sizing:border-box;padding:0px 10px;width:50px;min-width:50px;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;line-height:20px;color:rgba(27,31,35,0.298039);text-align:right;white-space:nowrap;vertical-align:top;background-color:rgb(205,255,216);border-color:rgb(190,245,203)"></td><td class="m_2163162726180100877blob-code-addition m_2163162726180100877blob-code" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;background-color:rgb(230,255,237)"><button class="m_2163162726180100877add-line-comment m_2163162726180100877btn-link m_2163162726180100877js-add-line-comment m_2163162726180100877js-add-single-line-comment" type="button" style="font-family:inherit;font-size:inherit;font-style:inherit;font-variant-caps:inherit;font-stretch:inherit;line-height:21px;overflow:visible;padding:0px;color:rgb(255,255,255);white-space:nowrap;background-color:rgb(3,102,214);border:0px;float:left;width:22px;height:22px;background-image:linear-gradient(rgb(3,114,239),rgb(3,102,214));border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;opacity:0"><u></u><u></u><u></u><u></u></button><span class="m_2163162726180100877blob-code-inner" style="box-sizing:border-box;overflow:visible;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;word-wrap:normal;white-space:pre-wrap"></span></td></tr></tbody></table></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Alex</div><br></font></span></div><br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/swift-<wbr>corelibs-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ian Partridge<br></div>
</div>