> On Jun 24, 2016, at 11:17 AM, L. Mihalkovic <laurent.mihalko...@gmail.com> 
> wrote:
> 
> I like the watch-what-you-wish-for warning of unsafeCast.

I’ll try porting stdlib to the “UnsafeRawPointer.unsafeCast(to: T.Type)” syntax 
and see how bad it is.

> I think it was really brilliant to introduce the extra step... basically 
> echos the alloc/init dichotomy of objc, so it should feel familiar to people 
> with this 

Dave Abrahams advocated for this and it ended up making the memory model easier 
to explain in simple terms that correspond to the API.

-Andy
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to