Comparing value types to reference types

When comparing value types to reference types, it is essential to distinguish between the differences you can see as a developer and the differences that are internal to Swift and the way your app will end up working. Knowing these details will ensure that you can make a well-informed decision that considers all the implications instead of only focusing on memory usage or developer convenience.

Let's examine the more obvious and visible differences first. Afterward, you will learn about the memory implications for each type.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset