[erlang-questions] Reassigning variables
Tue Mar 17 21:05:04 CET 2009
On Tue, Mar 17, 2009 at 12:02 PM, Matthew Dempsky <>wrote:
> I think this can be handled with a parse transform, and I'm considering
> writing a parse transform to handle it. (I haven't checked if anyone
> else has proposed similar functionality in the past, but this is
> something that's been bugging me for a while, and I've finally had to
> rename variables manually enough times to propose this.)
Reia (http://wiki.reia-lang.org/) 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions