Skip to main content

Posts

Showing posts from April, 2018

Objective-c vs Swift

Today we will discuss about one of the feature in which Objective-c is better than swift.  We all have read Turtle & Rabbit story. To start with today's discussion, let's treat topic as turtle & rabbit race where Objective-c is Turtle & Swift is Rabbit. Today Discussion Topic: 1) Run Time Flexibility  2) Dynamism On Your Mark: Apple introduced swift with the tagline "more safer than Objective-C". As we know  to win something, have to lose something .   So to become safer swift becomes Statically Typed Language. Statically Typed Language is one which does type checking at compile time. However, the old turtle (Objective-C) is a runtime language i.e. Most of the linkage between your methods,  ivar and classes are checked at runtime. What benefit you will get with run time flexibility? 1) Fix Critically issue in deployed application on app store : Method Swizzling can be used to fix any critical issue in the applic...