Why does Apple push for structs?

<p>From the very creation of the Swift language, Apple has pushed for developers to use structs frequently. Apple has an&nbsp;<a href="https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html" rel="noopener ugc nofollow" target="_blank">article</a>&nbsp;where they state:</p> <blockquote> <p>&ldquo;The additional capabilities that classes support come at the cost of increased complexity. As a general guideline, prefer structures because they&rsquo;re easier to reason about, and use classes when they&rsquo;re appropriate or necessary. In practice, this means most of the custom data types you define will be structures and enumerations.&rdquo;</p> </blockquote> <p>In this article, I&rsquo;d like to go over the main reasons why Apple recommends this.</p> <p><a href="https://medium.com/@paulwall_21/why-does-apple-push-for-structs-e511e8c8124e"><strong>Learn More</strong></a></p>
Tags: Apple push