r/iOSProgramming • • Jun 03 '15

One year later: Swift or Objective-C?

This week I will be writing the first lines of code for my new app. There's just one slight problem; Objective-C or Swift?

Is the one year old Swift mature enough for real world applications? Are the bugs reduced to the minimum? Why should I use Swift over Objective-C? Or vice versa.

1 Upvotes

26 comments sorted by

View all comments

Show parent comment

2

u/askoruli Jun 09 '15

If you have a switch statement in OO code, you're doing it wrong

Can you explain your point here? Seems a very strange opinion to take considering how common the switch statement is.

1

u/[deleted] Jun 09 '15

Its not exactly my point, its Martin Fowler, Robert Martin, and most anybody else who writes about code. A number of points on this anti-pattern are on the c2 wiki.