Current state of configuration in Elixir is a little bit problematic. There 
is idea for adding config providers directly to core, but IMHO the Erlang's 
approach with sys.config isn't that bad when you get a little bit used to 
it. So my problem is that right now some Elixir libraries "pollute" that 
file with compile-time only values (most important violators are 
Phoenix.Endpoint and mime application). What would be useful to either have 
a way to determine in `config/config.exs` whether it is compilation step or 
runtime, or to provide separate file with configuration-only values. The 
first option seems to be much more flexible as we can easily achieve that 
by using `if compilation?, do: import_config("compile-time.exs")`.

What are your opinions on this?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/1cf235fa-67fb-4d85-875f-6d7c02d4d4ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to