<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 12, 2013 at 10:23 PM, Stephen J. Turnbull <span dir="ltr"><<a href="mailto:stephen@xemacs.org" target="_blank">stephen@xemacs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1ra">Python doesn't use redundant keywords for a single construct.<br>
"let" is redundant with the following "def"s. On top of that, "let"<br>
being a new keyword will kill this syntax, I think.</div></blockquote></div><br>I don't want new syntax (I think I don't). </div><div class="gmail_extra"><br></div><div class="gmail_extra">What I want is to be able to invoke a block of code repeatedly, within a context, and in a pythonic way.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra" style>within closure():</div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div class="gmail_extra"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra" style>do_this()<br>and_do_that()</div></blockquote></div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra" style>
If it can't be pythonic (clear to the reader), I'm not interested. It's good enough as it is:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div class="gmail_extra" style>def block():</div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra" style><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div class="gmail_extra" style>do_this()</div></blockquote></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra" style>
<div class="gmail_extra" style>do_that()</div></div></blockquote></blockquote><div class="gmail_extra"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra" style>closure(block)</div><div class="gmail_extra" style>
<br></div></blockquote></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br><span style="color:rgb(0,102,0)">Juancarlo </span><b style="color:rgb(0,102,0)">Añez</b>
</div></div>