要做到这点,需要使用绑定。
它使用绑定极大地减少了样板文件代码。
外部服务使用绑定来描述对外部服务的访问。
External services use bindings to describe the access to external services.
But here, if I decide I'm going to store things not in x and y, but with some other set of names, for example, I've gotta go back into these pieces of code that use the points, and change them. So I've lost modularity.
除了要改下借口,但是这里,如果我决定,我不把值放在x和y中,而是和其他一些变量名进行绑定,例如这样的话,我就得回到使用这个点的代码,那儿去做更改了。
应用推荐