[erlang-questions] Reassigning variables
Tony Arcieri
tony@REDACTED
Tue Mar 17 21:05:04 CET 2009
On Tue, Mar 17, 2009 at 12:02 PM, Matthew Dempsky <matthew@REDACTED>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.
--
Tony Arcieri
medioh.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090317/ae491fd2/attachment.htm>
More information about the erlang-questions
mailing list