feat: Add MoneyBag, a balance across several currencies #3

Merged
rosa merged 1 commit from feat/money-bag into main 2026-08-14 00:14:52 +00:00
Owner

Where Money panics on a currency mismatch, a bag keeps each currency on
its own books, so accumulating a mixed pile of amounts always succeeds.
Balances are held only while nonzero, leaving one bag per financial
position for Eq to compare.

Ord and PartialOrd for Currency and IsoAlphabeticCode order the bag's
contents by alphabetic code. Width, fill, and alignment now go through
one path shared with Money's rendering.

Where Money panics on a currency mismatch, a bag keeps each currency on its own books, so accumulating a mixed pile of amounts always succeeds. Balances are held only while nonzero, leaving one bag per financial position for Eq to compare. Ord and PartialOrd for Currency and IsoAlphabeticCode order the bag's contents by alphabetic code. Width, fill, and alignment now go through one path shared with Money's rendering.
feat: Add MoneyBag, a balance across several currencies
All checks were successful
ci/woodpecker/push/test Pipeline was successful
6e9d4fb2e5
Where Money panics on a currency mismatch, a bag keeps each currency on
its own books, so accumulating a mixed pile of amounts always succeeds.
Balances are held only while nonzero, leaving one bag per financial
position for Eq to compare.

Ord and PartialOrd for Currency and IsoAlphabeticCode order the bag's
contents by alphabetic code. Width, fill, and alignment now go through
one path shared with Money's rendering.
rosa merged commit 33f7d887f3 into main 2026-08-14 00:14:52 +00:00
rosa deleted branch feat/money-bag 2026-08-14 00:14:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rosa/lucre!3
No description provided.