Open GoogleCodeExporter opened 8 years ago
I agree completely. There's a note in the API page:
[Note that this second element is not too useful since large patches may get
broken up internally, resulting in a longer results list than the input with no
way to figure out which patch succeeded or failed. A more informative API is in
development.]
One approach would be to collapse the booleans down to a list of the same
length as the input list of patches. Thus all the booleans relating to a
split-up patch would be ORed together and would be false if any of them failed.
This should be relatively simple, and doesn't change the return types (all
hell breaks loose if we need to change the API types for this library).
The downside is that one can't distinguish between partial failure and complete
failure. Don't know if that's important. Tell me about your use case.
Original comment by neil.fra...@gmail.com
on 20 Jan 2012 at 12:22
Thanks for the reply. I don't really need to know which patch failed for my
application so it's not a big issue for me. I was only printing the failed
patch to a log file for later perusal, the app. gives up and moves on.
Shrinking the vector to match the input list sounds ideal to me as it's
what I'd expect the function to do. The splitting of a patch is an internal
implementation detail for that method so I can't see why this would be
exposed.
Original comment by fotherin...@gmail.com
on 21 Jan 2012 at 1:00
Original issue reported on code.google.com by
fotherin...@gmail.com
on 19 Jan 2012 at 9:28