[swift-evolution] Thoughts on making NSOperatingSystemVersion Comparable?
Jordan Rose
jordan_rose at apple.com
Mon Feb 1 11:51:11 CST 2016
NSOperatingSystemVersion is a struct imported from C, so you can't add anything to the original declaration. The only thing Swift can do is add extensions. But that doesn't significantly impact the proposal.
I'm not sure it makes sense to cram the initializer in the same proposal but I'll let Philippe comment on that. I don't have any objections to it.
Jordan
> On Jan 31, 2016, at 19:13 , Robert S Mozayeni <dev at mzy.me> wrote:
>
> I have drafted a proposal. Feedback is welcome.
>
> https://github.com/rsmoz/swift-evolution/blob/master/proposals/implementing-comparable-on-NSOperatingSystemVersion.md <https://github.com/rsmoz/swift-evolution/blob/master/proposals/implementing-comparable-on-NSOperatingSystemVersion.md>
>
> -Robert
>
>> On Jan 26, 2016, at 6:07 PM, Jordan Rose <jordan_rose at apple.com <mailto:jordan_rose at apple.com>> wrote:
>>
>>
>>> On Jan 26, 2016, at 15:07, Jordan Rose <jordan_rose at apple.com <mailto:jordan_rose at apple.com>> wrote:
>>>
>>>
>>>> On Jan 26, 2016, at 15:04, Robert S Mozayeni <dev at mzy.me <mailto:dev at mzy.me>> wrote:
>>>>
>>>>> Discussion is fine, of course, but you should bring this up with Tony or Philippe on the swift-corelibs-dev list.
>>>>
>>>> I discussed this briefly with Philippe through GitHub, and he suggested I file a proposal: https://github.com/apple/swift-corelibs-foundation/pull/240 <https://github.com/apple/swift-corelibs-foundation/pull/240>
>>>>
>>>> I’m still interested in getting feedback from the community before I actually draft a formal proposal.
>>>
>>> Ha! Okay, my bad. I think I mixed up "implementing something already present in C" (like SR-576 <https://bugs.swift.org/browse/SR-576>) with "extending C API in a Swifty way", which certainly needs some kind of review. Sorry about that.
>>
>> For the record, this seems like a totally reasonable addition to me.
>>
>> Jordan
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160201/d121f1db/attachment.html>
More information about the swift-evolution
mailing list