> On Apr 28, 2020, at 7:27 AM, Geert Janssens <geert.gnuc...@kobaltwit.be> 
> wrote:
> 
> However numbers are not just meant for displaying, one needs to do 
> calculations on them as 
> well. And at that point signs will matter. Whether a certain number increase 
> or decrease your 
> balance is a matter of sign.

Maybe we should change that: Instead of using operator+() and operator-() we 
could have a balance class with functions credit() and debit(). It would have 
subclasses AssetBalance, LiabilityBalance, and EquityBalance (or maybe follow 
the European model and just do ActiveBalance and PassiveBalance) whose 
overrides of credit() and debit() would do The Right Thing.

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to