Why I cannot use tuple as application env key?

bengt cean.ebengt@REDACTED
Mon Oct 26 22:25:25 CET 2020


Greetings,

The key is documented as being atom. Unfortunately why is not documented.

One solution is to add another level of tuples in list:
{backend, [{Name, Configuration}]}

Best Wishes,
bengt

> On 26 Oct 2020, at 11:15, Max Lapshin <max.lapshin@REDACTED> wrote:
> 
> I want to use tuple as application env key:
> 
> application:set_env(sessions, {backend,Name},  Configuration).
> 
> 
> Why is it forbidden? Why application_controller assumes that I must
> use only atoms?



More information about the erlang-questions mailing list