<div dir="ltr">I&#39;m not sure I understand. Swift comments are parsed. Are you saying that this is a problem? If so, why do you think it&#39;s a problem?<div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 6, 2016 at 7:19 PM, isidoro carlo ghezzi <span dir="ltr">&lt;<a href="mailto:isidoro.ghezzi@icloud.com" target="_blank">isidoro.ghezzi@icloud.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Just another consideration: the consequence could be about avoiding any `#pragma` (or equivalent), semantic instructions out of comments, those, in my opinion, should be fully ignored by compiler and IDE: knowing that comments are not ignored  by compiler or IDE, a developer may think not using comments his code at all.</div><div>`// isghe: maybe some hack code here it will be executed by IDE.`</div><div>That is why I am proposing a `#pragma` or equivalent.</div><div>thanks, Isidoro</div><span class=""><div><br>On Sep 06, 2016, at 02:10 AM, isidoro carlo ghezzi &lt;<a href="mailto:isidoro.ghezzi@icloud.com" target="_blank">isidoro.ghezzi@icloud.com</a>&gt; wrote:<br><br></div></span><div><blockquote type="cite"><div dir="auto"><span class=""><div>// isghe: ok<br><br>Sent from my iPhone</div><div><br>On 05 Sep 2016, at 22:31, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt; wrote:<br><br></div></span><blockquote type="cite"><div><span class="">I agree: &quot;mark&quot; (IMO) is in the same category as &quot;todo&quot; and &quot;fixme&quot;, and all are bona fide comments. If you wish your code to be disabled without becoming parsed as a comment, use instead `#if false`.<br><br></span><div class="gmail_quote"><span class=""><div dir="ltr">On Mon, Sep 5, 2016 at 15:27 Jean-Daniel Dupas via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br> &gt; Le 5 sept. 2016 à 00:53, isidoro carlo ghezzi via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; a écrit :<br> &gt;<br> &gt; Hi all,<br> &gt;<br> &gt; I think the &quot;old style&quot; `#pragma` is necessary in Swift.<br> &gt; Exactly in the same way it is available in C/C++ or Objective-C/C++, or in something else portable way.<br> &gt;<br> &gt; Because `#pragma` is not handled in Swift, in Xcode they overloaded the semantic of comments, giving to the comment `// MARK:` the semantic of `#pragma mark`<br> &gt;<br> &gt; But my point of view is that, I would like that what it is written in a source comment (what it is written after a // or between /* */ ) should be fully ignore by compiler or IDE.<br> &gt;<br></span><span class=""> &gt; I understand that maybe a compiler shouldn&#39;t lose time handling `#pragma options`, but giving semantics to source comment, I think it can be dangerous and misunderstood.<br> &gt;<br></span><span class=""> &gt; The implementation in Swift compiler should be simple, ignoring any line beginning with `#pragma` (ok I know It is not simple)<br> &gt; The IDE will handle the `#pragma`<br> &gt;<br> &gt; That&#39;s why they invented `#pragma`in C/C++ Objective-C/C++ right?<br> <br> I don’t think it is a reason pragma exists. except for #pragma mark, I’m not sure the compiler ignore any pragma. They are used to control the compiler behaviors (controlling warning, specifying linker dependencies, enabled specific feature like OpenMP, etc…) and not at all to interact with the IDE. I would even says that pragma mark is an abuse of the #pragma construct as it is ignored by the compiler and used by the IDE only.<br> <br> I’m strongly again introducing #pragma without very very good reason into swift. Asking the IDE to parse comment to extract metadata is not worst abusing pragma to do the same, and at least it is forward and backward compatible with any other tools.<br> <br></span><span class=""> ______________________________<wbr>_________________<br> swift-evolution mailing list<br> <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br></span></blockquote></div></div></blockquote></div></blockquote></div></div></blockquote></div><br></div></div>