{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/4540","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4540/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4540/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4540/events","html_url":"https://github.com/elixir-lang/elixir/issues/4540","id":150001316,"number":4540,"title":"Emit warnings if undefined function is called on a required module","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/App:Elixir","name":"App:Elixir","color":"CCCCCC"},{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Kind:Enhancement","name":"Kind:Enhancement","color":"009800"},{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Level:Advanced","name":"Level:Advanced","color":"f7c6c7"},{"url":"https://api.github.com/repos/elixir-lang/elixir/labels/Note:Discussion","name":"Note:Discussion","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T08:21:28Z","updated_at":"2016-04-21T10:56:35Z","closed_at":null,"body":"Both Elixir and Erlang do not expect the function you are calling to exist during compilation time. However, if a module has been required, we could perform such checks because then, by definition, it is available during compilation time.\r\n\r\nThe idea of this feature is to check if a function actually exists when compiling code and the function being called belongs to a module that has been required."},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/212856408","html_url":"https://github.com/elixir-lang/elixir/issues/4540#issuecomment-212856408","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4540","id":212856408,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T10:56:35Z","updated_at":"2016-04-21T10:56:35Z","body":"@X4lldux that feels to be another separate discussion: how to make it easy to require multiple modules?\r\n\r\nI am quite sure we can never make something like * with `:except` work because the only way to know all modules is by compiling all of them. And then if you define require * in two different modules, how to solve that? I believe we should move this discussion elsewhere, possibly the elixir-lang-core mailing list, to keep this one focused on warnings on top of the existing require feature. What do you think?"}}