You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, some questions when reading the source code:
From the implementation I can see that json0.commonLenghtForOps(a,b) is not symmetry, i.e.commonLengthForOps(a,b) may not be the same as commonLengthForOps(b,a), why is that? From the comment above ("Returns the common length of the paths of ops a and b") I cannot get the point.
Since json0.commonLenghtForOps(a,b) is not symmetry, I can see that common and common2 in json0.transformComponent(dest,c,otherC,type) may not be the same. But what's their respective purposes? Without some hint, it's hard to figure out by just reading the code, since the code includes many things, such as backward compatibility, code path merge, etc.
Thanks in advance and looking forward to the reply.
The text was updated successfully, but these errors were encountered:
Hi there, some questions when reading the source code:
From the implementation I can see that
json0.commonLenghtForOps(a,b)
is not symmetry, i.e.commonLengthForOps(a,b)
may not be the same ascommonLengthForOps(b,a)
, why is that? From the comment above ("Returns the common length of the paths of ops a and b") I cannot get the point.Since
json0.commonLenghtForOps(a,b)
is not symmetry, I can see that common and common2 injson0.transformComponent(dest,c,otherC,type)
may not be the same. But what's their respective purposes? Without some hint, it's hard to figure out by just reading the code, since the code includes many things, such as backward compatibility, code path merge, etc.Thanks in advance and looking forward to the reply.
The text was updated successfully, but these errors were encountered: