On Tue, Jul 1, 2014 at 1:41 PM, John Wiegley <[email protected]> wrote:
> >>>>> Martin Blais <[email protected]> writes: > > > 2) place all assertions at the end of your file, after all transactions. > > Doesn't this mean that you couldn't check balances during the course of the > ledger, however? That is my sole use of them; only having assertions at > the > very end would be next to useless for me. > I agree. My point with the suggestion was to highlight that a reorder-safe way to use balance assertions that are tied to transactions is not practical; I hope my example highlights this. You can either (1) place them where it makes sense in your Ledger and live with occasional and difficult-to-debug failures due to reordering, or (2) use an impractical method that is reorder-safe. (1) could be a reasonable choice, "just live with it" - depends on your view - but requires a subtle understanding of what's going on behind the scenes. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
