Book Image

Objective-C Memory Management Essentials

Book Image

Objective-C Memory Management Essentials

Overview of this book

Table of Contents (18 chapters)
Objective-C Memory Management Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Welcome to Swift


Swift is actually not a new language, as Apple started the development of Swift back in 2010. Since programming languages such as Ruby, Python, Haskell, Rust, and so on have surged in popularity, Swift was developed using language ideas from these popular languages. As Apple describes Swift as Objective-C without the C, you can consider Swift as a language that is a reimagining of Objective-C using modern concepts and syntax borrowed from languages such as JavaScript, but still keeping the essence and spirit of Objective-C.

Swift does away with pointers and makes memory management opaque to the developer through the use of ARC so that they can focus on their iOS application creation and not worry about memory management most of the time. Swift uses ARC and not the GC method found in Java. This means that Swift can still leak memory if you are not careful by using cyclic strong references. Smalltalk is a programming language released in 1972 that has heavily influenced Objective...