[swift-evolution] [Pitch] SE-0083 revisited: removing bridging behavior from `as`/`is`/`as?` casts

Joe Groff jgroff at apple.com
Mon Mar 6 11:13:47 CST 2017


> On Mar 4, 2017, at 4:33 PM, Kenny Leung via swift-evolution <swift-evolution at swift.org> wrote:
> 
> So this proposal would not only change the meaning of “as”, but would require changing all bridged Objective-C API to remove any implicit conversions?

The behavior of imported Objective-C API would not change. Those conversions are introduced by the importer inside the compiler. You'd merely be using a different syntactic form to manually invoke conversions, so where you write `x as NSString` manually today you'd instead write `NSString(x)`.

-Joe


More information about the swift-evolution mailing list