Takes a start and an end point, just going to bind local variable names start and end to those pieces.
有一个开始和结束点,就是去把局部的变量的名字,和这些点进行绑定。
solve1 I'm going to use solve 1 as before, but now I'm going to bind out three variables.
我还是用以前的,但是现在我要绑定三个变量。
And when I create a binding, x I'm taking a variable name, in this case x, stored somewhere in a table, and I'm creating a link or a pointer from that name to that value.
当我创建一个绑定的时候,我有一个变量的名字,在这个例子中是,存在一个表中的某处,然后创建一个连接,或者指针从这个名字指向目标值。
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中,而是和其他一些变量名进行绑定,例如这样的话,我就得回到使用这个点的代码,那儿去做更改了。
应用推荐