title: If String and Array are implemented as struct, does that mean their size are also limited by stack size?
body: <p>In Swift, <code>String</code> and <code>Array</code> are implemented as <code>struct</code></p>
  
  <p>And, <code>struct</code> is being created in stack memory.</p>
  
  <p>And, stack memory has very limited size (<a href="https://stackoverflow.com/questions/30929305/is-the-stack-size-of-iphone-fixed">Is the stack size of iPhone fixed?</a>), compared to heap memory.</p>
  
  <p>Does that also mean?</p>
  
  <ol>
  <li>The length of <code>String</code> is limited by stack memory size?</li>
  <li>The total size of all elements hold by <code>Array</code>, is limited by stack memory size?</li>
  </ol>