[swift-evolution] [Pitch] Reducing the bridging magic in dynamic casts

Joe Groff jgroff at apple.com
Mon May 9 11:41:44 CDT 2016


> On May 6, 2016, at 7:24 PM, Jose Cheyo Jimenez <cheyo at masters3d.com> wrote:
> 
> Hi Joe, 
> 
> Would I still be able to cast an AnyObject to a String or Array etc?

You would do so via constructors rather than using `as?`, something like String(bridging: object).

-Joe

> I am thinking about working with JSON files and using the Apple JSON Parser. 
> 
> Thanks
> 
> 
> 
>> On May 3, 2016, at 4:50 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Thanks everyone for the initial round of feedback. I've submitted a draft proposal:
>> 
>> https://github.com/apple/swift-evolution/pull/289
>> https://github.com/jckarter/swift-evolution/blob/remove-bridging-conversion-dynamic-casts/proposals/XXXX-remove-bridging-from-dynamic-casts.md
>> 
>> -Joe
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
> 



More information about the swift-evolution mailing list