[erlang-questions] Why Erlang compiler don't check functions in module?
Fri Feb 10 13:54:30 CET 2017
it is not really possible. The module may not exist in compile time at all,
it can be dynamically generated or downloaded from, say, remote http
server. Or it may exist but the app in runtime can generate another module
with the same name and load it instead of еру old one.
IDEs, such as Intellij IDEA with erlang plugin do generate warnings in
these case. But it is not the job for the compiler, as it would make hard
to compile apps with stop on warning compile option.
2017-02-10 13:21 GMT+03:00 Howld <10z98@REDACTED>:
> Dear Developers:
> As a new developer, the result of the compile I hope is clear to
> indicate the functions in module if exist when I use compiler cmd like
> "erlc test.erl". But hopeless, if I write code like "elang:spwan(fun
> test:foo/0)" in erl file, it happens nothing even warning. I think it
> increases uncertainty with non-English speaking countrie's developers.
> And if you think so, I will shame on you. What I real want to express is
> you should have an idea and there is a long way to improve compiler.
> Best blessing!
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions