I submitted this pr https://github.com/elixir-lang/elixir/pull/8925  and 
jose asked that I come to list, to talk about it.

My motivations for doing so is to expose export_all compiler option at mix 
level. My use case exposing private functions to unit tests for smaller 
more directed tests, as well as writing tests for some private functions.  
I also want to allow my dev environment to access private function for 
easier debugging and experimentation.

I realized that others have solved this issue other  ways, putting @compile 
flags everywhere wrapped in an if Mix.env == :test block, or other macros 
and libraries doing the same thing.

I personally think it makes sense to expose the builtin erlang method for 
doing this instead of those other techniques, especially as when I googled 
around it seems people think what I am doing is already possible even 
though it is not.

There also seems to be a bug currently that when you pass 
ERL_COMPILER_OPTIONS="export_all" from the command line it tags it as an 
option in the compiled beam, but it did not actually export_all modules.

Mog

-- 
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/aa4e74c3-d1d6-416a-9169-77037d056db4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to