<div class="gmail_quote">On Tue, Mar 17, 2009 at 12:02 PM, Matthew Dempsky <span dir="ltr"><<a href="mailto:matthew@dempsky.org">matthew@dempsky.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 I think this can be handled with a parse transform, and I'm considering<br>
writing a parse transform to handle it.  (I haven't checked if anyone<br>
else has proposed similar functionality in the past, but this is<br>
something that's been bugging me for a while, and I've finally had to<br>
rename variables manually enough times to propose this.)<br>
</blockquote></div><br>Reia (<a href="http://wiki.reia-lang.org/">http://wiki.reia-lang.org/</a>) certainly does something similar.  It implements destructive assignment by transforming code into static single assignment form.  All variables are versioned, and wherever variables are destructively assigned the version number is incremented.  It works just fine, aside from the normal caveats associated with destructive assignment.<br>
<br>-- <br>Tony Arcieri<br><a href="http://medioh.com">medioh.com</a><br>