[erlang-questions] Including function in configuration file

Code Wiget codewiget95@REDACTED
Mon Jul 9 20:57:20 CEST 2018


Hi,

Say I want to include a function as an environment variable

I can do this:
 application:set_env(App, Key, NewValue).

Is there any way to do this from a .config file? Such as:
 [{my_app, [ {my_fun, #Fun<my_app.12.39472874>}]}]

— this gives a compile error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180709/39c46b31/attachment.htm>


More information about the erlang-questions mailing list