Just a quick note for anyone learning Swift, my collection of Swift Resources just past 2000 urls: <a href="http://www.h4labs.com/dev/ios/swift.html" rel="nofollow">http://www.h4labs.com/dev/ios/swift.html</a><p>The raw data is on GitHub: <a href="https://github.com/melling/SwiftResources" rel="nofollow">https://github.com/melling/SwiftResources</a>
Lately, I've seen a lot of people claiming that the Objective-C runtime is something worth avoiding. I don't find this to be true. It is highly optimized, with hand written assembly, and it is very fast at what it does. Not to mention Apple's entire framework is build around it.<p>The new trend favoring Swift value types often leads to reinventing the wheel for the sake of premature optimization.
I'm curious as to why the observable needs a reference to the subscribing object at all. The subscriber knows who it is. (Similarly, why does the update callback need to pass the old value?)l If the subscriber didn't keep a copy of the old value then presumably it doesn't care.
RAC does all of this and more:<p><a href="https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/ReactiveCocoa/Swift/Property.swift" rel="nofollow">https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/R...</a>