name属性定义变量的名称。
每一个标记定义了每个变量的名称和数据类型。
上下文变量的名称一定不能包含任何“%”符号。
The name of the context variable must not contain any "%" signs.
But in general, the choice of variable name is a great way of commenting your code.
但是通常来说,变量名称的选择,是评论你的代码的,一个重要方式。
OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.
关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。
Now, unlike high school math or in algebra Z where you call things X and Y and Z, in programming, in computer science, you're actually dealing with humans where it's useful to have a variable name that's more descriptive than X and Y and Z.
不像高中数学或者代数中,称为X和Y和,在程序设计和计算机科学里,你实际上是在和人打交道,在这里有个描述性比xyz更强的,变量名称是很重要的。
应用推荐