PROFESSOR 2: I just want to maybe mention that in some of the reading, you'll see terms like object equality and value equality, instead of shallow equality and deep equality.
教授2:我就是想提醒下,大家阅读的时候请注意,你们会看到对象相等和值相等,而不是浅意义相等和深意义相等,教授:好,那么,这个对象。
Some people like to use shallow and deep, object and value, but they're talking about the same thing, which is it the same object or is it the same, in this case, set of values, depending on what you want to define as you use it.
有些人喜欢用对象相等值相等,但是它们是同一件东西,也就是是不是同一个对象,或者是不是同样的,在这个例子中,是同样的值集合,这取决于当你使用它的时候,想要怎么来定义它。
So what's going on in this case is, I want to distinguish between shallow equality and deep equality.
第一件事情就是,测试浅意义上的相等,这什么意思呢,这是个不太好的英语句子。
A particular instance of that is deep versus shallow copy.
一个很好的例子就是深复制和浅复制,当你想要复制一个链表的时候。
应用推荐