<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 10, 2015 at 6:31 PM, Michael Hewitt <span dir="ltr"><<a href="mailto:michael@hewitts.us" target="_blank">michael@hewitts.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Here is the proposal:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px">The name of the first parameter to a method can be used to scope subsequent variable references similar to the behavior of 'global'.</span><br></div></blockquote><div><br></div><div>Here are some examples:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px">class Foo:</span><br style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px"></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px">def method_a(self)</span></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px">self x # subsequent 'x' references are scoped to 'self'</span></div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><span style="color:rgb(51,51,51);font-family:Verdana,Arial,sans-serif;font-size:11px;line-height:17.68000030517578px">x = 5 # same as self.x = 5</span></div></blockquote></blockquote></blockquote></blockquote></div><br>I will give it a month after something like this goes into the language for style guides to appear that will recommend prefixing all member variables with a triple underscore to distinguish them from the locals.  </div></div>