Ian
01/27/2017, 6:19 PMtwo
is a child of one
, and three
is a child of two
.
one {
two {
three {
two { … } // problem
}
}
}
Here, the programmer thinks that the second call to two
is being called on the receiver for three
, but it’s actually being called on the receiver for the outer one
- yielding unexpected and likely difficult-to-debug results.
Does that make sense?