如果想在 case 中用这个值,那么可以用过值绑定 (value bindings) 解决: let somePoint = (0, 1)switch somePoint {case (0, 0):println("(0, 0) is at the origin")case (let x, 0):println("...
基于68个网页-相关网页
参数,目标,异常以及返回值绑定。
进程id的值绑定到变量pid。
值绑定到可执行查询上下文中的参数。
A value is bound to a parameter in the context of an executable query.
So that's the key thing to-- to realize; that what the assignment did was have two separate paths to the same object.
认识到赋值会造成两个独立的绑定到;,同一对象上这件事情很关键,因此我可以通过这一条或者。
And once I have values, I want to get a hold of them so I can give them names.
如果我有想保存的值,我可以命名这些值,也就是进行了绑定。
x It says, take the name x and create a binding for that name to the value of the sub-expression and in fact to do this, to stress a point, let's do that.
它的意思是,创建了一个名字,然后创建了对于这个名字,和子表达式的值的绑定,实际上这么做,我们是为了,要强调一个点,让我们来说说这个点。
应用推荐