[erlang-questions] exported variables
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;
> thank you in advance,
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions