[erlang-questions] Reia - Python/Ruby mix targeting Beam/HiPE

Bjorn Gustavsson <>
Thu Jun 5 15:33:25 CEST 2008

Mikael Pettersson <> writes:

> Bjorn Gustavsson writes:
>  > It should be trivial to implement mutable variables, simply by inventing
>  > a new, unused variable name each time a mutable variable is assigned.
>  > (Further references to the mutable variable should be changed to refer
>  > to the new name, of course.)
> Define "mutable variable". I know of (at least) two different kinds:
> 1. Each variable binding starts a new scope, nested within but
>    otherwise independent of the previous/surrounding scope.
>    This is what SML's LET and Scheme's LET* implement.
>    It's still purely functional and can be implemented via
>    a simple renaming operation (alpha conversion).

That was the kind of mutable variable I was thinking of, and it seems
to be the kind that REIA supports.

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list