<div>There was some discussion about this recently on Twitter: <a href="https://twitter.com/jckarter/status/664257829633568768">https://twitter.com/jckarter/status/664257829633568768</a>
</div>
<div class="mailbox_signature"><br></div>
<br><br><div class="gmail_quote"><p>On Sun, Dec 6, 2015 at 12:44 AM, Jacob Bandes-Storch via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
<p>Sometimes it's desirable to break up a type's implementation into multiple files, within the same module. So for this simple case, it make sense for stored properties to be allowed (within the same module), treating them as continuations of the original class/struct declaration with no additional overhead.<br></p>
<div class="gmail_quote">
<div dir="ltr">On Sat, Dec 5, 2015 at 4:34 PM Tomáš Linhart &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12.8px">Hello,</div>
<div style="font-size:12.8px"><br></div>
<span style="font-size:12.8px">very often, it is necessary to define stored properties in extensions. It is currently only possible in Swift that has access to ObjC runtime with associated objects (in theory it might be possible with some global dictionary) and it requires a lot of boilerplate. Associated objects are used in UIKit quite heavily so it is something that authors of frameworks need.</span><div style="font-size:12.8px"><br></div>
<div style="font-size:12.8px">It would be nice to able to create properties in extensions natively in Swift without need of Objective-C and without a boilerplate. These properties could be marked with some extra keyword/attribute so it is obvious they are different and they have a cost (depends on their implementation).</div>
<div style="font-size:12.8px"><br></div>
<div style="font-size:12.8px">What do you think?</div>
<div style="font-size:12.8px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div>
<span style="font-size:12.8px"><font color="#888888"><div>Tomáš</div></font></span>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=P-2BsYbBZHRBuLDBJaL4DIKDNfkkjpROowTyRAObV11qyLHFuBzxox8WFo2HNQPO7K-2F6ZZ9DnqC-2F4xrLbQuVF333qpak-2F3lL8BEcI6HDzjgtiEKhodzqFEie4eKvAN2Be-2Fw8XvU7sD4hwKBqhyNEKqX9ElSDh9IC1rbUEIilpd8ZWx6qo7Zw9J3cMMAIwfrynyR8eylyJIvJdB-2Ft9tH577-2BBNwGT5-2BIbb0ysJoL0B7m-2FA-3D" alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important">
_______________________________________________<br>
swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></blockquote>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=9quTCwvcagxGmkGTuvea4A75cqjTWnZHWOWIhXyy9WU8jW-2BXaL04PFoiYzQahIUMFB5uiqaf8VfpRKo5zGR-2FmSqPX8tMfGuP3its9SMESlgUpz2VaifP0ugE1tl-2FA30XgANqecwH9USMZvbAYOGwrN337VRPPmNfbzNcTHoIggN-2FiGV4MNa-2Fc7ppa4G6iFgAE-2FrXPa4uKcJK4-2FbTTSLucV2TtmuIXohWAi-2FvhL2iuEM-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"></div></blockquote></div><br>