[erlang-questions] Retrieving "semi-constant" data from a function versus Mnesia

Jay Nelson jay@REDACTED
Wed May 13 18:59:57 CEST 2015


> On May 13, 2015, at 12:07 AM, Hynek Vychodil <vychodil.hynek@REDACTED> wrote:
> 
> What prevents you using 
> 
> generic_config:data_one(Config, ...)
> 
> instead of 
> 
> Config_Module:data_one(...)
> 
> It is just one more step of indirection. It can be a viable way in the case when write operations are very rare.
> 
> Hynek

You’ve inspired me to use a Macro and a build hook to generate
a single line include file with the user-provided module name.
Hopefully I can make it simple enough for 3rd party users to
customize.

Thanks!
jay




More information about the erlang-questions mailing list