[erlang-questions] exported variables

Richard Carlsson carlsson.richard@REDACTED
Sat Jan 19 11:43:45 CET 2019

Some time after that discussion, the compiler was changed to warn only for
those variables that occur in a pattern and are exported from an above
case/if/receive/try. So you can export a variable from the clauses of a
case and then use it in a computation without complaints from the compiler,
but if you use it in a match, you get a warning because it's likely that
you thought it was actually free.


Den fre 18 jan. 2019 kl 06:03 skrev Peter J Etheridge <petergi@REDACTED

> Dear Erlangers,
> in regard to exporting variables, is this still the case;
> http://erlang.org/pipermail/erlang-questions/2004-April/012104.html
> thank you in advance,
> Peter
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190119/f0609ef1/attachment.htm>

More information about the erlang-questions mailing list