<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 29, 2016, at 1:44 PM, Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">On May 28, 2016, at 8:26 PM, Jon Shier via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>I appreciate the sentiment, but I think we should reserve warnings for actual compiler diagnostics.<br class=""></blockquote><br class="">+1. The IDE should just pick up "// FIXME: “ comments and summarize them as issues. Xcode already shows them in its jump bar.<br class=""><br class="">That said, I can see a use for #error, as Charlie shows downthread:<br class=""><br class="">#if os(OSX)<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>/// ...<br class="">#if os(Linux)<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>/// ...<br class="">#else<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>#error("This OS isn't supported yet.").<br class="">#endif<br class=""><br class="">-Chris<br class=""></div></div></blockquote><br class=""></div><div>One could make a weak argument that #warning/#error/#message make a nice family of flexible alerts</div><div>just because they're kind of what we're used to already. A possible use case for warning:</div><div><br class=""></div><div><span style="font-family: Menlo;" class="">#if canImport(Cocoa)</span></div><div><font face="Menlo" class=""> #warning("Your UI will look bad. This code works under OS X but this library is intended for iOS-like environments")</font></div><div><font face="Menlo" class="">#elseif !canImport(UIKit)</font></div><div><font face="Menlo" class=""> #error("Unsupported target GUI")</font></div><div><font face="Menlo" class="">#endif</font></div><div><br class=""></div><div>-- E</div><div><br class=""></div></body></html>