[swift-evolution-announce] [SE-0139] Bridge Numeric Types to NSNumber and Cocoa Structs to NSValue

Douglas Gregor dgregor at apple.com
Mon Sep 12 16:06:21 CDT 2016

Hello Swift community,

The review of SE-00139 <https://github.com/apple/swift-evolution/blob/master/proposals/0139-bridge-nsnumber-and-nsvalue.md> "Bridge Numeric Types to NSNumber and Cocoa Structs to NSValue” ran from September 1…7, 2016. The proposal has been accepted with one modification: numeric values bridged to NSNumber will maintain their type identity (e.g., an Int8 bridged to an NSNumber can be cast via as!/as? to an Int8) while other instances of NSNumber (e.g., those created in Objective-C) can be cast to any numeric type that can represent their value. This matches the existing bridging behavior introduced in id-to-Any bridging (SE-0116 <https://github.com/apple/swift-evolution/blob/master/proposals/0116-id-as-any.md>). The proposal text has been updated accordingly.

	- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution-announce/attachments/20160912/66bda774/attachment.html>

More information about the swift-evolution-announce mailing list