<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The swift package manager is currently&nbsp;<a href="https://github.com/apple/swift-package-manager/pull/105#issuecomment-168754567" class="">considering its own define</a>, so it's now the second official project that could benefit from this syntax.<div class=""><br class=""></div><div class="">David, any interest in writing this up?</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 3, 2016, at 4:48 AM, Goffredo Marocchi &lt;<a href="mailto:panajev@gmail.com" class="">panajev@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">+1 from me as well, supporting conditional compilation when the two versions of foundation differ and may differ for the foreseeable future seems a must on this end.<br class=""><br class="">Sent from my iPhone</div><div class=""><br class="">On 3 Jan 2016, at 10:12, Drew Crawford via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">If we are going to support something like this, I’d rather see it be something everyone could leverage as there are many use cases for this feature:</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><font face="Menlo" class="">#if available("package-name", "1.2.*")</font></div><div class=""><font face="Menlo" class="">#endif</font></div></blockquote></div></blockquote><div class=""><br class=""></div>Big +1.<div class=""><br class=""></div><div class="">I've asked specifically to get some kind of&nbsp;<a href="https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151228/000287.html" class="">conditional compilation on corelibs-foundation</a>&nbsp;being used. &nbsp;corelibs-founcation is currently incompatible with Darwin Foundation, and so it is impractical to make a single codebase build for both.</div><div class=""><br class=""></div><div class="">But building the same application against both Foundations and spotting differences is one of the important ways we're going to spot bugs.</div><div class=""><br class=""></div><div class="">So I think the code quality of Foundation ultimately hinges on getting some feature like this in the language.</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=dXNHRXbGTqqssqDI7Hn7KyogJzdRthQdFNkQ7LxhQVOhjE-2Bu29Neqw-2BlINtEcopvcvy7tsqm0TE9PmMKnH85b6yAwI9-2Bj-2BTJgb7eqkNEkiBQLf8DGDvTZRXp7BAD2f3EDRTxyN6xCZE3CrZf08pRgyT8S2L-2F9Pco3-2F64w6DAqZ9cj1TCDvKKS6WHjH0BctuA6Mb7Fh-2Fa7NL5WQAKZqj3KaJu98kHF42-2FQ-2FRzdT2JxWQ-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">

</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-evolution mailing list</span><br class=""><span class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class=""></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>