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

Vlad Dumitrescu <>
Thu Jun 5 15:24:29 CEST 2008

On Thu, Jun 5, 2008 at 2:23 PM, Bjorn Gustavsson <>

> "Gleb Peregud" <> writes:
> > According to http://wiki.reia-lang.org/wiki/Roadmap :
> > The First Milestone: Compile to Erlang AST
> > And I assume that Erlang AST does not permit mutable variables, hence
> > it will probably not include mutable variables (unless hidden by Reia
> > -> Erlang AST translator)
> 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.)
> The big problem with this matter is that Erlang doesn't have variable
assignment, it has pattern matching. So if we encounter a reference to an
old variable in a pattern, should the old variable be used to check if it
matches, or should a new fresh variable be created and matched against the
right side? This could be solved for example by using special characters to
denote fresh matching, but IMO the resulting mess is worse than the issue
that it was created to solve.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080605/4da6a0ed/attachment.html>

More information about the erlang-questions mailing list