Re: Why I cannot use tuple as application env key?

bengt <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
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 <[email protected]> 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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.