<div dir="ltr">On Thu, Dec 17, 2015 at 11:28 AM, Michael Brown 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><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-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Tue, Dec 15, 2015 at 21:03 Sune Foldager via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br>
<br>
&gt; Personally, I am against using mandatory self. I have coded a lot of Python, and I find it quite annoying to have to type (and read) “self.” everywhere. It’s a balance, of course:<br>
&gt;<br>
&gt; “self.” everywhere means you can see what’s an instance member and what’s a local variable. That’s generally a good thing. But it also means a lot of filler text in your code, which makes reading and writing slower. That’s not so good. It’s a balance, and in this case my experience from C# (and, as mentioned, Python) is that I much prefer C#’s non-mandatory use of “this”/“self&quot;.<br>
&gt;<br>
&gt; I see that this proposal is going to be reviewed as SE-0009, and I am a bit concerned that not all arguments are being considered because of the contents of the proposal text: The only counter argument mentioned in the proposal has to do with capturing semantics in closures. This is fine, but why isn’t the counter argument of verbosity being mentioned? This has been brought up on the list as well.<br>
&gt;<br>
&gt; Also, the “Community Responses” section exclusively lists positive feedback. Is that how it’s supposed to be with the SE process? If not, where are the arguments from people who are -1 on the proposal?<br>
&gt;<br>
&gt; I really hope the review team considers:<br>
&gt; - The negative responses on this list as well. Also consider that many Swift developers are not on this list; I doubt it’s representative, either, being dominated by “language interested” developers.<br>
&gt; - The rather large amount of changes to existing code required.<br>
<br>
I couldn&#39;t agree more on all points. I strongly object to this proposal. Requiring self makes code unnecessarily verbose and is one of the things I least liked about Objective-C compared to other languages (e.g. C#, Python, Java) where the use of self/this is optional. It is only only actually necessary when resolving ambiguity with local variables, in the few situations where such ambiguity exists (initialisers mostly).<br></blockquote><div><br></div><div>Correction: self is not optional in Python.</div><div><br></div><div>I mentioned this earlier on the thread, but if anyone wants a further, more “in-depth” reading of the subject, there is plenty of debate out there. For what seems like time immemorial, there have been lobbies to make self implicit in Python as well (none have succeeded).</div><div><br></div><div>Guido van Rossum wrote a post on this very topic which might be somewhat relevant. There are reasons specific to Python as to why it can’t remove self (e.g., it was never implicit), but the post touches on other reasons relevant to Swift’s situation as well: <a href="http://neopythonic.blogspot.in/2008/10/why-explicit-self-has-to-stay.html">http://neopythonic.blogspot.in/2008/10/why-explicit-self-has-to-stay.html</a></div><div><br></div><div>The comments of the post are also pretty illuminating from both sides.</div><div><br></div><div>Dan</div></div></div></div>