<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 14, 2017, at 6:56 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" class="">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><br class="Apple-interchange-newline"><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_quote" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On Sat, Jan 14, 2017 at 5:50 PM, Amir Michail<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:a.michail@me.com" target="_blank" class="">a.michail@me.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><br class=""><div class=""><span class="gmail-"><blockquote type="cite" class=""><div class="">On Jan 14, 2017, at 6:46 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank" class="">xiaodi.wu@gmail.com</a>&gt; wrote:</div><br class="gmail-m_5581296995374281999Apple-interchange-newline"><div class=""><div dir="ltr" class="">On Sat, Jan 14, 2017 at 5:35 PM, Amir Michail<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:a.michail@me.com" target="_blank" class="">a.michail@me.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><span class=""><br class="">&gt; On Jan 14, 2017, at 6:28 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank" class="">xiaodi.wu@gmail.com</a>&gt; wrote:<br class="">&gt;<br class="">&gt; This has been brought up on this list before. The conclusion of the previous thread on this topic was that there is a way to do this:<br class="">&gt;<br class="">&gt; #if false<br class="">&gt; // put your code here<br class="">&gt; #endif<br class="">&gt;<br class=""><br class=""></span>This would not check the code for compilability within the surrounding code. This requires more than a syntax check.</blockquote><div class=""><br class=""></div><div class="">I can't say I've ever needed that feature; could you share a concrete use case?</div><div class=""><br class=""></div></div></div></div></div></blockquote><div class=""><br class=""></div></span><div class="">Consider an array of levels for a game where some levels are commented out for possible future use. It would be nice to have such level entries continue to compile as the code elsewhere evolves and yet not be included in the executable.</div></div></div></blockquote><div class=""><br class=""></div><div class="">```</div><div class=""><div class="">enum Levels: Int {</div><div class="">&nbsp; case foo = 1, bar, baz, boo</div><div class="">}</div><div class=""><br class=""></div></div><div class=""><div class="">var levels: [Levels] = [</div><div class="">&nbsp; .foo,</div><div class="">&nbsp; .bar,</div><div class="">]</div><div class=""><br class=""></div><div class="">// disabled</div><div class="">_ = {</div><div class="">&nbsp; levels += [</div><div class="">&nbsp; &nbsp; .baz,</div><div class="">&nbsp; &nbsp; .boo,</div><div class="">&nbsp; &nbsp; // this won't compile if you add:</div><div class="">&nbsp; &nbsp; // .nonExistent,</div><div class="">&nbsp; ]</div><div class="">}</div></div><div class="">```</div></div></div></blockquote></div><br class=""><div class="">That’s helpful thanks! I still think code comments would be nice though.</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>