<div>I feel like warnings showing up as you type are an IDE&#39;s responsibility.</div><div><br></div><div>Annotations to delay warnings seem like noise.  Once you get used to programming you don&#39;t need the annotations.</div><div><br></div><div>If warnings are bothersome, then turn it off in the Xcode settings!</div><div><br></div><div><br></div><div><br></div><div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">On Thu, Feb 2, 2017 at 1:34 PM Pierre Monod-Broca via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_msg">+1 to the proposal</div><div id="m_5385576569458362431m_9099105920762546235AppleMailSignature" class="gmail_msg">+1 to teach how to remove live issues to beginners, so they have a chance to train at detecting errors without the compiler</div></div><div class="gmail_msg"><div id="m_5385576569458362431m_9099105920762546235AppleMailSignature" class="gmail_msg"><br class="gmail_msg"></div><div id="m_5385576569458362431m_9099105920762546235AppleMailSignature" class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg">Pierre</div></div><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg">Le 2 févr. 2017 à 17:48, Nicolas Fezans via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt; a écrit :<br class="gmail_msg"><br class="gmail_msg"></div><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">+1<br class="gmail_msg"></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Tue, Jan 31, 2017 at 11:55 AM, Tino Heth via swift-evolution <span class="gmail_msg">&lt;<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><span class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span style="font-family:Helvetica;font-size:12px;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;float:none;display:inline!important" class="gmail_msg">One of the biggest issues that I saw while teaching Swift to newbies (most had not programmed before) is confusion based on the early warnings/errors that swift/xcode gives you as they type.  What would happen is that they would type a variable, and it would say… “You haven’t used this variable” and so they would just click the fixit because they trust the compiler more than they trust themselves.  This would lead to a point where they were very confused because some of the code was code they had thought through, and some of it was changed by random fixits in ways they didn’t understand… and so it would lead to more errors/fixits until they had errors which couldn’t be fixed.</span><br style="font-family:Helvetica;font-size:12px;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" class="gmail_msg"></div></blockquote></div><div class="gmail_msg"><br class="gmail_msg"></div></span><div class="gmail_msg">Imho this is the best example to illustrate that inflationary use of warnings does more harm than good, and I hope it will be fixed.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Having a bunch of conditions for warnings looks like overkill to me, and there are alternatives:</div><div class="gmail_msg">- Only show when building</div><div class="gmail_msg">- Only show in release builds</div><div class="gmail_msg">- Linter</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">That said, I&#39;m going out on a limb and claim I already know how to write code and don&#39;t need basic schooling, and showing warnings before I hit compile is merely a distraction.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">But there are also Playgrounds which seem to be an important aspect of Swift, especially for newbies who could really benefit from some hints.</div><div class="gmail_msg">There are no linters, no release builds, and even no regular builds for Playgrounds, so your model is the only one that works for them.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Bottom line:</div><div class="gmail_msg">+1 </div></div><br class="gmail_msg">_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div><br class="gmail_msg"></div>
</div></blockquote><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span class="gmail_msg">_______________________________________________</span><br class="gmail_msg"><span class="gmail_msg">swift-evolution mailing list</span><br class="gmail_msg"><span class="gmail_msg"><a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a></span><br class="gmail_msg"><span class="gmail_msg"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br class="gmail_msg"></div></blockquote></div>_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div></div>