[erlang-questions] Type spec for application:get_env and set_env

Max Treskin zerthurd@REDACTED
Thu Jul 24 15:05:09 CEST 2014


Hello

It is possible to use any term() as a key in application:set_env and then retrieve a value by this term using application:get_env (what is very conveniently), but only atom() is allowed as a key in type spec of these functions.
My proposal is to change type spec in favour of any term usage as a key. Any cons?

-- 
Max Treskin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140724/33761093/attachment.htm>


More information about the erlang-questions mailing list