Re: [swift-users] Why does casting to Any make my forced downcast not crash?

2017-03-14 Thread Joe Groff via swift-users
> On Mar 13, 2017, at 5:13 AM, Kim Burgestrand via swift-users > wrote: > > Here are two implementations that I'd expect to be equivalent, but > something's different because the first example crashes, whereas the second > example does not crash. > > What's the difference between these two?

Re: [swift-users] Self - requirement

2017-03-14 Thread Dave Reed via swift-users
> On Mar 14, 2017, at 4:15 AM, Quinn The Eskimo! via swift-users > wrote: > > > On 14 Mar 2017, at 06:02, Седых Александр via swift-users > wrote: > >> Please, tell, where I can read about "Self" requirement in protocols? > > The thing that really clarified it for me was Dave Abrahams’s cl

Re: [swift-users] Self - requirement

2017-03-14 Thread Quinn "The Eskimo!" via swift-users
On 14 Mar 2017, at 06:02, Седых Александр via swift-users wrote: > Please, tell, where I can read about "Self" requirement in protocols? The thing that really clarified it for me was Dave Abrahams’s classic “Protocol-Oriented Programming in Swift” talk from WWDC 2016.

Re: [swift-users] How to pass a protocol as parameter, without using @objc?

2017-03-14 Thread Zhao Xin via swift-users
Great! Zhaoxin On Tue, Mar 14, 2017 at 2:15 PM, Bruno Macabeus via swift-users < swift-users@swift.org> wrote: > I found the solution. I need use a closure. > I updated the gist: https://gist.github.com/brunomacabeusbr/ > eea343bb9119b96eed3393e41dcda0c9 > > 2017-03-13 1:38 GMT-03:00 Bruno Macab