<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym18_1_1459250663590_3186"><span></span></div><div></div><div id="yui_3_16_0_ym18_1_1459250663590_3196">And you are OK with that ????</div><div id="yui_3_16_0_ym18_1_1459250663590_3196">I can not imagine my team writing such code and me looking to 5 code reviews per day having to find out what the variable actually is every time :)</div><div id="yui_3_16_0_ym18_1_1459250663590_3196"><br></div><div id="yui_3_16_0_ym18_1_1459250663590_3196">For me it is OK for student projects but not for big code that have to be supported for years ...</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, March 29, 2016 2:02 PM, Andrey Tarantsov &lt;andrey@tarantsov.com&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv3776659409"><div><div><blockquote class="yiv3776659409" type="cite"><div class="yiv3776659409"><div class="yiv3776659409"><div class="yiv3776659409" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv3776659409" dir="ltr" id="yiv3776659409yui_3_16_0_ym18_1_1459228604445_4742">Having more that one variable with the same name in one method is stupid and the language should prevent that at least.&nbsp;</div></div></div></div></blockquote><div><br clear="none" class="yiv3776659409"></div><div>Actually, we're doing it all the time:</div><div><br clear="none" class="yiv3776659409"></div><div>if let foo = foo {</div><div>&nbsp; ...</div><div>}</div><div><br clear="none" class="yiv3776659409"></div><div>var foo = foo</div><div><br clear="none" class="yiv3776659409"></div><div>You can do this in a subscope, you can do this to the arguments, and you can do this to fields.</div><div class="yiv3776659409yqt5411510444" id="yiv3776659409yqtfd90738"><div><br clear="none" class="yiv3776659409"></div><div>A.</div><div><br clear="none" class="yiv3776659409"></div></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>