willowtreeapps / tablediff

MIT License
11 stars 4 forks source link

Feature/build diff #5

Closed kent-white closed 8 years ago

kent-white commented 8 years ago
ianterrell commented 8 years ago

It looks to me like buildTable and buildDiff are working on equality. Then processDiff looks for updates by checking identifiedSame.

Would this whole thing be simpler if that were reversed? If buildTable and buildDiff worked off of identifiedSame and then processDiff checked equality (perhaps with metadata tracked by buildDiff)?

ianterrell commented 8 years ago

Stylistically I believe we prefer a space after comment markers, before the comment.

//not like this
// but like this
ianterrell commented 8 years ago

Thinking through it, I think we need our extension to be limited to collections whose indices conform to BidirectionalIndexType, and then we should only be using predecessor() and successor() instead of advancedBy(). Thoughts?

ianterrell commented 8 years ago

I think maybe after a few more changes we're ready to rebase and merge it in. Probably only worth 1 commit? Thoughts?