<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 18, 2017, at 12:00 AM, David Hart via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: Helvetica-Light; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Here's my rough idea:</div><div class="" style="font-family: Helvetica-Light; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><ul class=""><li class="">The Swift compiler gains a new off-by-default `next` version triggerable with the `-swift-version next` flag.</li><li class="">All controversial proposals start their implementation in that version.</li><li class="">Once one of the poposals feels stable enough, it is brought into an official version.</li><li class="">Developers would be encouraged to try the `next` features while being warned that source compatibility on that version will *not* be garanteed.</li></ul></div><div class="" style="font-family: Helvetica-Light; font-size: 15px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">As the vast majority of the Swift user base are still Apple platform developers, I think it would be important for the success of that strategy that the applications compiled with the `next` flag be accepted on the Apple stores or it will reduce the group of developers ready to play in this "breeding-group".</div></div></blockquote></div><br class=""><div class="">Hi David,</div><div class=""><br class=""></div><div class="">I think this is a well-intentioned suggestion, but I see several problems with this approach.</div><div class=""><br class=""></div><div class="">The first problem is one of expectations. &nbsp;Developers invest in using features because they want to write code to get their work done. &nbsp;Once someone starts shipping something that depends on a feature they get very grumpy when it gets taken away. &nbsp;It doesn’t really matter if the feature is “official” or not. &nbsp;Once enough people invest in using a feature it becomes “unofficially” part of the language. &nbsp;IMO, that doesn’t promote a model where changes to the language are well-considered.</div><div class=""><br class=""></div><div class="">The second problem is that within the compiler there is still vestigial remnants of earlier days in Swift when we were doing a lot of experimentation. &nbsp;Before Swift 1 was released we toyed around quite a bit with the syntax, the type checker, pretty much everything. &nbsp;We’d have a design meeting and then immediately someone would go implement something in the compiler. &nbsp;During those days such rapid experimentation was helpful to see how ideas would work out and to get a feel for the language we were crafting. &nbsp;But as time has gone by we’ve repeatedly found ourselves removing cruft from the compiler’s implementation and fixing bugs from technical debt of incompletely implemented features or features that didn’t work well together. &nbsp;Features added for the purpose of experimentation are almost always incomplete — it’s the very nature of experimentation. &nbsp;It is also very easy to convince yourself that a new language feature “works” when you try it out on a few examples.</div><div class=""><br class=""></div><div class="">No design process is going to be perfect. &nbsp;We made a lot design decisions before Swift was publicly announced that were made based on our intuition and experiences, but really those decisions weren’t evaluated until people started writing a lot of Swift code. &nbsp;We then have gone back — several times — and have revised core design decisions in the language based on learning from real-world usage of Swift. &nbsp;With the access control saga I think we saw another instance of that story: a lot of discussion happened in the Swift 3 timeframe, but some important factors/implications of the design being discussed that are now obvious in hindsight just weren’t apparent when the discussions were happening. &nbsp;I believe some number of these sagas are inevitable, and hopefully we learn from them to better inform our design decisions in the future.</div><div class=""><br class=""></div><div class="">I know the idea behind having a “-swift-version next” is to allow people to invest in experimental ideas to provide real feedback, but I don’t think this encourages good language design and many developers would be fearful of using such experimental features. &nbsp;Those that fall in love with an experimental feature would likely fervently defend their existence, even if they end up being a bad idea. &nbsp;It’s also not clear by what criteria we would take experimental features into the compiler in the first place, and adding more cruft into the compiler could be very detrimental to its implementation quality.</div><div class=""><br class=""></div><div class="">As Chris said, Xcode betas really are a good time for people to provide feedback about features. &nbsp;With Swift 3 some of that feedback was delayed because of the upheaval caused by the Grand API Renaming and the migration work projects needed to do to go from Swift 2 to Swift 3. &nbsp;Going forward the intent is that the evolution of Swift provides a much smoother, continuous experience for users, and allows them to try out new features of the language more easily and thus possible provide feedback sooner.</div><div class=""><br class=""></div><div class="">Ted</div></div></body></html>