<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 Jun 16, 2016, at 9:29 AM, Charlie Monroe 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=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Have you considered just #if os(mac)? I mean the fact that you're testing against "OS" is already expressed. I know it goes against the other values (watchOS, tvOS), but I'd personally drop those as well in favor of simplier os(watch), os(tv).</div><div class=""><br class=""></div><div class="">This would go along the various Swift 3 improvements where e.g. NSFileManager.defaultManager() became simply FileManager.default (thus dropping the unnecessary "Manager")...</div><div class=""><br class=""></div><div class="">But I understand if you're against it, considering that these are really trademarks and official OS names…</div></div></div></blockquote><div><br class=""></div>I would be nervous about this personally, as there is a potential for people to confuse #if os(tv) as some form of class of operating system variants targeting televisions, rather than tvOS specifically.</div><div><br class=""></div><div>Plus, it would be hard to be consistent - #if os(iOS) probably shouldn’t become #if os(i) :-) </div><div><br class=""></div><div>-DW</div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 16, 2016, at 4:29 PM, Erica Sadun 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=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Starting in Sierra, Apple's Mac-based OS is renamed to macOS.</div><div class=""><br class=""></div><div class="">All user-facing Swift APIs must go through Swift Evolution. While this is a trivial API change, I have put together a formal proposal as is normal and usual for this process. Here is a draft for public comment.</div><div class=""><br class=""></div><div class=""> -- Erica</div><div class=""><br class=""></div>Gist: <a href="https://gist.github.com/erica/f53fa6cfef9e5cf17ab139f7528edde2" class="">https://gist.github.com/erica/f53fa6cfef9e5cf17ab139f7528edde2</a><div class=""><br class=""></div></div></div></blockquote></div></div></div></blockquote></div><br class=""></body></html>