Different between Swift and objective C

Objective C

-> Objective-C is a pure superset of C.
-> structs, enums, and scalar types of objects are not supported in Objective C.
-> Objective C Does not support tuple.
-> Objective C is not support optional.
-> lower compile time compare to swift
-> Objective C have header and implementation file.
-> Objective C is easily compatible with C++
-> Objective C is hard to learn compare to swift.

Swift

->Swift is a more modern language
-> structs, enums, and scalar types of objects are supported in Swift.
-> Swift supports Tuples.
-> Swift is support optional and optional chaining
-> Higher compile time.
-> Swift have only one file contains both interface
-> Swift C is not compatible with C++
-> Swift is more readable and less code programming language

One thought on “Different between Swift and objective C

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.