[erlang-questions] Service platform (longish rant)
Ulf Wiger
ulf@REDACTED
Tue May 8 08:26:00 CEST 2007
2007/5/8, Roger Larsson <roger.larsson@REDACTED>:
>
>
> But I guess it all boils down to
> Dict1=read_options_file(Dict0),
> Dict2=store_options(Options, Dict1),
> Dict3=post_process_options(Dict2),
> {Path, [App, Vsn]}=get_app(Dict3),
> Dict4=store_options(
> [{app_name, list_to_atom(App)},
> {app_vsn, Vsn}])
> beeing kind of ugly and hard to update - add a line (Basic anyone)...
> But on the other hand here you can notice some strange looking things
> - is the store_options really expected to return a modified Dict
Yes, it takes all the options and actually puts them in
Dict, giving special treatment to the {report,Level} option.
The example is taken from the 'builder' module in Jungerl.
BR,
Ulf W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070508/77f24289/attachment.htm>
More information about the erlang-questions
mailing list