Hey!

In iex recompile/0 will recompile the current project, so no need to
specify paths.

http://elixir-lang.org/docs/stable/iex/IEx.Helpers.html#recompile/0

Cheers,
Louis
On 1 Jul 2016 05:49, "J David Eisenberg" <[email protected]> wrote:

> Presume I am creating a new application with these commands:
>
>     mix new my_app
>     cd my_app
>
> I then use the editor of my choice  to put some functions into
> lib/my_app.ex
>
> If I want to test those functions in iex, am I best off doing this:
>
>     iex -S mix
>
> or
>     cd lib
>     iex
>
> If I do the former, then when I make changes to the source file, I have to
> do this in iex:
>
>    c("lib/my_app.ex")
>
> whereas the second version needs only
>
>    c("my_app.ex")
>
>
> Both of these seem to work equally well. Which is the correct or preferred
> way, if either? Or is there a "best practices" method that I am totally
> missing here?
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/2efa495f-d3d0-44f0-9cf1-e029d8e2be94%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/2efa495f-d3d0-44f0-9cf1-e029d8e2be94%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-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAM-pwt51kB_6yn3YHbo6Wa5VyUDytqPhfzfRRTdSaqsLiYsLJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to