O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we looked into types in general and explored reference versus value types in detail. We covered topics such as value and reference type constants, mixing value and reference types, and copying. Then we learned the characteristics of value types, key differences between value and reference types, and how we should decide which one to use. We continued by exploring equality, identity, type checking, and casting topics. Even though we explored the topic of value types, we did not explore a related topic-immutability, in this chapter. Chapter 9, Importance of Immutability will cover the importance of immutability. Furthermore, for in depth coverage of these concepts it is recommended to watch the following videos: WWDC ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required