the completed count sometimes becomes negative! (Try removing an uncompleted item.)
To me this actually seems like a bug in the BufSet source. (Adding an existing element to a set, or removing a non-existent one should ideally not influence the count.) Fundamentally the problem seems to me that the size of the set is stateful, therefore cannot really be part of DeltaBufSet.
Unless I change line 29 of Application.scala to
the completed count sometimes becomes negative! (Try removing an uncompleted item.)
To me this actually seems like a bug in the
BufSet
source. (Adding an existing element to a set, or removing a non-existent one should ideally not influence the count.) Fundamentally the problem seems to me that the size of the set is stateful, therefore cannot really be part ofDeltaBufSet
.