I'd really like to have that modularity that says, I'm only going to get access to the values, not by calling their names, but by calling some specific method to get access to their names.
这样我们就丢掉了代码的模块化,我很希望代码有这样的模块化:,我访问变量的值,不是通过直接调用它们的名字,而是通过调用某个可以,访问这些变量名的方法来访问。
I would only ever access the values through a method.
如果我真的很讲卫生,我只会通过一个方法来访问变量值。
As a consequence, I can now refer to that just by its name.
因此,我现在可以通过这个名字,来访问这个值。
应用推荐