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
> 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’