[swift-evolution] [DRAFT] Aliasing the OS X Platform Configuration Test

Erica Sadun erica at ericasadun.com
Thu Jun 16 10:33:16 CDT 2016


> On Jun 16, 2016, at 9:29 AM, Charlie Monroe <charlie at charliemonroe.net> wrote:
> 
> 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).
> 
> This would go along the various Swift 3 improvements where e.g. NSFileManager.defaultManager() became simply FileManager.default (thus dropping the unnecessary "Manager")...
> 
> But I understand if you're against it, considering that these are really trademarks and official OS names...
> 
> 

I felt consistency with iOS/tvOS/watchOS was more important.

-- E

>> On Jun 16, 2016, at 4:29 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> 
>> Starting in Sierra, Apple's Mac-based OS is renamed to macOS.
>> 
>> 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.
>> 
>>  -- Erica
>> 
>> Gist:  https://gist.github.com/erica/f53fa6cfef9e5cf17ab139f7528edde2 <https://gist.github.com/erica/f53fa6cfef9e5cf17ab139f7528edde2>
>> 
>> Aliasing the OS X Platform Configuration Test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160616/10b2d008/attachment.html>


More information about the swift-evolution mailing list