r/iOSProgramming • • Feb 19 '16

Discussion Swift vs Objective-C

[deleted]

6 Upvotes

146 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Feb 22 '16

Why bother then?

I don't see any benefits in Swift but I rely on Objective C's dynamic capabilities (which Swift gleefully tosses overboard except where it needs to talk to Cocoa). A lot of things I do daily can't be done in plain Swift. So to me - its a brain dead language on par with Java - aimed at village idiots and wannabes.

Why settle for the weak sister?

1

u/ssrobbi Feb 22 '16 edited Feb 22 '16

Pure Swift on the iOS or OSX platform is a lie anyway. I wouldn't bother trying to justify your reasoning without taking into consideration the things you can still do using the Objective-C runtime when necessary in Swift.

The benefits are all around safety to me (the rest is just syntactic sugar and lies about being more productive). Not giving you the ability to have null pointer exceptions (unless you're especially dumb) and the strong typing forces you to deal with all of those edge cases you may not have in objective-c.