如果我们查看src中的列表文件,它看起来不太好。为什么他们不像
那样分裂myproject
include
deps
ebin
rebar.config
app.config
src
webmachine
riak_cs_wm_bucker.erl
riak_cs_wm_bucket_acl.erl
storage
riak_cs_storage.erl
riak_cs_storage_console.erl
riak_cs_storage_d.erl
...
有没有理由不在这样的项目中存储文件?或者也许创建应用?
答案 0 :(得分:1)
src没有拆分的原因是因为OTP目录结构禁止它,就像@rvirding所说的那样,
http://www.erlang.org/doc/design_principles/applications.html#id73976
此外,如果所有模块都属于同一个应用程序,则拆分代码库没有什么意义。