r/ObjectiveC • u/whackylabs • Feb 18 '20
What do you think can be improved in Objective-C?
I realized after this tweet that I don’t want anything more in the language. But I still have a few “nil-safe” NSDictionary extensions which could very well in the standard.
I know a lot of developers have a similar list of things they can’t live without
Do you have any interesting snippets to share?
6
Upvotes
2
u/Zalenka Feb 19 '20
One file instead of two.
6
u/[deleted] Feb 18 '20
Thanks for sharing. As a largely Swift developer for the last three years or so, lately I’ve been trying to brush up on my Objective-C, so I can see these extensions being helpful.
I do have to agree with the other comments here, though. Largely Apple has moved on from Objective-C as far as net new development, which is unfortunate. But I am keeping my objective c skills sharp because it still is a valuable skill to have and will continue to be. There are plenty of companies out there who have seen through the rose colored glasses of Swift and have honestly answered the question “What do we actually gain from converting our existing huge code bases to Swift?” For many of them, the answer is “nothing”. So as fewer and fewer engineers are able to competently use ObjC, the more valuable the skill will become to those companies.
1
u/mantrap2 Feb 18 '20
Sadly Apple will not be changing ObjC at this point - all their eggs are in the Swift basket now. That's where they are implementing ideas like this instead. You could always override NSDictionary yourself to add such things. Many 3rd Party libraries do stuff like this though it's hit-or-miss in what they are trying to fix.
0
u/[deleted] Feb 19 '20
[deleted] — view deleted comment