@robtimp @jesse_squires Unowned is faster and allows for immutability and nonoptionality. If you don't need weak, don't use it.
-
-
@jckarter@chriseidhof just to clarify: does `unowned` behave basically like `assign` in objc? -
@heathborders@chriseidhof The property doesn't keep the object alive, but the runtime still validates access to the dead object. -
@jckarter@chriseidhof so if the object is dead when you access it, swift guarantees a crash whereas objc doesn't? - View other replies
-
@jckarter@chriseidhof sweet. Is it ever possible to make an `assign` reference in swift? Maybe through some Unsafe API? - View other replies
-
@heathborders@chriseidhof There's unowned(unsafe), which is completely unmanaged.
-
-
-
@jckarter yes, now I have the feeling I finally get it. Thanks a lot! - View other replies
-
@chriseidhof@jckarter thanks for the additional clarification!
-
-
@jckarter@chriseidhof maybe a topic for an upcoming Swift book update?
-
@jckarter@chriseidhof sounds like a lot of memories from college
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Joe Groff
Chris Eidhof
Heath Borders
Jesse Squires
nemesis
Jake Adams