r/iOSProgramming • • Jun 16 '16
Question Is Objective C being abandoned?
With Swift 3 coming soon, and many updates with iOS, I was wondering if Apple is still updating the Objective C side of things to keep the two languages in harmony together. I've been investing heavily and don't feel that Swift's baked enough to give it a try just yet. What do you guys think?
17
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jun 16 '16
When the list of "limitations" basically just comes down to edge-case Objective-C quirks that people act like they use routinely, but can be guaranteed to use pretty much never (like method-swizzling, which you'd think was highly recommended programming practice from the way these loons adore it), I'm sorry, but that's not a coherent case against Swift and for Objective-C.
By contrast, I can think of a handful of Swift things beyond the pretty syntax (OMG property observers and computed properties and powerful enums) that I use all the time in actual practice to construct more elegant, readable code. In addition to the fact that I don't have to write a bunch of nil-checking boilerplate everywhere solely for the sake of defensive programming, because I always know, as a matter of course, whether a given value can possibly be nil or not.
As I've said before, if people can honestly sit there and argue that it will cost them less over the lifetime of an app to develop it in Objective-C now and maintain it as such, vs writing/maintaining it in Swift, that's a fine argument for staying away from Swift for the time being. But if people think they're staying away because it's not possible to write the app they want to write in Swift, then they're being stupid, and ultimately the opposite of pragmatic (especially if you take the long view).