Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
如果配置值在程序运行期间没有变化 - 换句话说,它们在程序运行时是恒定的 - 您希望能够访问它们是
do_a_thing(startants.host.host.value,value,value, stonstants.port.value)
当然,这样做没有错。
If the configuration values do not change during the run of the program -- in other words, they are constant while the program is running -- and you want to be able to access them is
do_a_thing(Constants.host.value, Constants.port.value)
then sure, there's nothing wrong with doing it that way.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
如果配置值在程序运行期间没有变化 - 换句话说,它们在程序运行时是恒定的 - 您希望能够访问它们是
do_a_thing(startants.host.host.value,value,value, stonstants.port.value)
当然,这样做没有错。
If the configuration values do not change during the run of the program -- in other words, they are constant while the program is running -- and you want to be able to access them is
do_a_thing(Constants.host.value, Constants.port.value)
then sure, there's nothing wrong with doing it that way.