In contrast dynamically typed languages bind the type to the actual value referenced by a variable, meaning that the type of a variable can change along with the value it references.
相反的,动态类型的语言则是根据变量所引用的值来绑定类型,这意味着变量的类型可以随着它引用的值改变而改变。
As an example, Listing 6 shows what happens when I change the type of the local variable used for the method start time in the interceptor code from long to int.
作为一个例子,清单6展示了在将方法开始时的拦截器代码所使用的局部变量的类型从long变为int时的情况。
Change the value of the Credit Risk Limit business variable to 45000 by repeating steps 1-12.
重复步骤1到12,将业务变量Credit Risk Limit的值修改为45000。
All that's going to change, is the value the variable or the value of some data structures.
或者一些数据结构的值,提醒大家在这块代码里面。
What if I don't change the value of that variable inside of the code?
那么如果在循环内部,我不改变这些变量的值会怎么样?
Let me write a function, in fact the literal thing I would do is to say, identify the things that change, give each of them a variable name because I want to refer to them, and then write a function that captures the rest of that computation just with those variable names inside.
让我来写个方法,实际上我的意思是,辨别出变化的东西,然后给它们逐个命名以区分,然后写一个用来计算,这些变量的,包括计算过程的方法。
应用推荐