Re: [elixir-core:10999] Application.get_env accept path instead of just a single key

2022-07-27 Thread José Valim
You can already do: Application.get_env(app, key1)[key2][key3] Or pipe to get_in afterwards. The reason why we added paths to compile_env is mostly because we need to know the path in order to know what parts of the environment has become stale, but otherwise we would not have added such fea

Re: [elixir-core:10999] Application.get_env accept path instead of just a single key

2022-07-27 Thread luk...@niemier.pl
Maybe we could have `Application.get_in_env` that would operate like `get_in/2` on the return value of `Application.get_env/2`. wtorek, 5 lipca 2022 o 12:37:02 UTC+2 José Valim napisał(a): > Unfortunately Application.get_env accepted anything as key in previous > versions. It has been deprecate