[swift-users] [Bug or ByDesign?] unowned optional values not allowed

2016-07-03 Thread Karl via swift-users
Currently it’s not possible to have an unowned optional value. E.g: class A { unowned var parent : A? // ‘unowned’ may only be applied to class and class-bound protocol types, not ‘A?' deinit { if let p = parent { print("Bye, mom!") } print("dealloca

Re: [swift-users] Why can't Swift instance methods call class methods without qualification?

2016-07-03 Thread Rick Mann via swift-users
> Karen Stone wrote: >> I believe there’s real value in being explicit about referencing class >> members. It helps both the reader of the code and it makes writing code >> with typical IDE conveniences like code completion less cluttered and more >> informative. Unfamiliar class methods won’