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时的情况。
For example, a manager could change the variable of the time frame in which to search for enough fraud warnings if too many false positives are being registered.
例如,如果登记了太多的负面事件,经理可以去更改时帧(time frame)变量,以便搜索出足够的欺诈(fraud)警告。
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
应用推荐