[erlang-questions] Simple Erlang Recommendation (last returned value)

Andrew Stone stondage123@REDACTED
Fri Jul 25 21:43:06 CEST 2008


IMO this appears a bit dangerous. It seems like the OP is simply trying to get around Single-Assignment. I don't see any need for it personally.

-Andrew



----- Original Message ----
From: James Hague <james.hague@REDACTED>
To: erlang-questions@REDACTED
Sent: Friday, July 25, 2008 1:33:39 PM
Subject: Re: [erlang-questions] Simple Erlang Recommendation (last returned value)

> And an equivalent to Perl's $_

Or there could be a prefix, like an asterisk, that means "fresh
symbol."  For example:

*A = something()
*A = something_else()

Need to decide what this means:

[A, *A | T] = something()
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list