[erlang-questions] Reassigning variables
David Mercer
dmercer@REDACTED
Wed Mar 18 17:27:08 CET 2009
On March 17, 2009, Richard O'Keefe wrote:
> So use a macro:
> -define(let(Lhs,Exp,Body),
> (fun (Lhs) -> Body end)(Exp)).
>
> X = foo(),
> ?let(X, bar(X), (
> ?let(X, ugh(X), (
> ack(X)))
Isn't "let" a reserved word? Anyone know what "let" is used for? Darn
annoying, if you ask me, since I always have to write this macro in all-caps
to get around that limitation....
Cheers,
DBM
More information about the erlang-questions
mailing list