None of require, import, and use are needed to call functions from another
module. You just type MyModule.my_function()

I would say that using import is generally a bad idea as it becomes harder
to keep track of which functions are defined in which modules.

Cheers,
Louis

On Wed, 23 Nov 2016, 04:02 Ben Wilson, <benwilson...@gmail.com> wrote:

> The documentation is pretty thorough here:
> http://elixir-lang.org/docs/master/elixir/Kernel.html#use/2
>
> Honestly, use isn't really beginner material. What do you mean by "start
> using module that he himself wrote" ?
>
>
> On Tuesday, November 22, 2016 at 6:54:32 PM UTC-5, Razvan Musetescu wrote:
>
> I've been trying to figure out the best way to leverage the functionality
> of module into other modules.
> Naturally I thought that one of the directives *require* or *import* or
> the *use* macro would be the solution
> http://elixir-lang.org/getting-started/alias-require-and-import.html
>
> After doing some research I found that the use macro solved my problem but
> I figured out how to use it just after reading this
> http://learningelixir.joekain.com/use-import-require-in-elixir/
>
> Specifically there's nothing in the Getting Started Guide about how should
> we should write the __using__ macro.
> I believe this information should be available in the guide as the current
> documentation isn't enough for a beginner to start using module that he
> *himself* wrote.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/be4c95d6-0f82-4bb7-928b-d1b33392205a%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/be4c95d6-0f82-4bb7-928b-d1b33392205a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAM-pwt6hDydHjHzkh-Bo-Np9%3DNEQgAo6gyuLuw1S1o2wOY7VoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to