[erlang-bugs] bogus 'unsafe variable' warning with try-else
Kostis Sagonas
kostis@REDACTED
Thu Nov 20 14:22:17 CET 2014
On 11/20/14 15:13, Anthony Ramine wrote:
> try file:read(F, 1024 * 1024) of
> {ok,Bin} -> binary_to_term(Bin)
> after
> file:close(F)
> end
And the reason to _having_ to write this is? (*)
Cheers,
Kostis
(*) Less bugs are exposed in the compiler and less baby cats die in
China if we all write like that, perhaps? :)
Jokes aside, I also agree the above code is nicer, but that does not
mean that the current warning is bogus and the analysis should be fixed.
More information about the erlang-bugs
mailing list