<div dir="ltr">I think that "private" as it is already causes more confusion than "local". Another alternative I can think of is "scoped" or some variant of that. It would be nice to have a good unambiguous name for it. Right now I just hope that we can get it with *some* name. I'd be willing to do the work if it could help make it happen.<div><br></div><div>--</div><div>Ilya Belenkiy<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 9, 2015 at 1:07 PM John McCall <<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> On Dec 9, 2015, at 9:57 AM, Matthew Johnson <<a href="mailto:matthew@anandabits.com" target="_blank">matthew@anandabits.com</a>> wrote:<br>
>> We should be disallowing access modifiers in function contexts anyway.<br>
><br>
> I didn't mean people would expect to use the access modifier in a function context, but it is common to refer to member variables as 'public', 'internal' or 'private' variables and it is common to refer to variables scoped to a function as local variables. There has never been any potential for confusion because there has never been a language I know of with a 'local' access modifier.<br>
><br>
> If we add one using this keyword I could imagine confusion between members declared with the 'local' access modifier and variables scoped to a function. The potential for confusion would be most prevalent in new developers, but I can also imagine casual conversations between experienced developers where such confusion might arise. It's something to consider when thinking about whether or not this would be the best keyword to use.<br>
<br>
That’s a very good point.<br>
<br>
John.</blockquote></div></div></div>