Weak closure reference

It's not the value that should be weak but the captured refences. If any of the reference becomes unavailable, the whole optional will invalidate and return nil. You may also want unowned closures where you known what you're doing.

I pitched this once myself: [Pitch] Introduction of weak/unowned closures

1 Like