[swift-evolution] Thoughts on making NSOperatingSystemVersion Comparable?
Robert S Mozayeni
dev at mzy.me
Wed Feb 3 17:04:25 CST 2016
I've updated the proposal to use extensions.
Sent from my tablet
> On Feb 1, 2016, at 12:51 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> 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
>>
>> -Robert
>>
>>>> On Jan 26, 2016, at 6:07 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>>>>
>>>>
>>>>> On Jan 26, 2016, at 15:07, Jordan Rose <jordan_rose at apple.com> wrote:
>>>>>
>>>>>
>>>>>> On Jan 26, 2016, at 15:04, Robert S Mozayeni <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
>>>>>
>>>>> 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) 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/20160203/0462c12d/attachment.html>
More information about the swift-evolution
mailing list