Actually, if I remember now, the term "commodity" was intended to be used for currencies which have at least one instance of being held at cost. In practice this distinction never made a difference and we can treat those interchangeably.
On Sat, Mar 17, 2018 at 5:50 PM, Martin Blais <[email protected]> wrote: > Yes, the terms have been used interchangeably, I believe, as in Ledger > (historical reasons). > There's no particular reason. > Perhaps in the very beginning it wasn't clear whether those two subsets of > "commodities" should be differentiated (they don't have to). > In the source code I'm /mostly/ using "currency" but it's not a nice > choice, as it's not common usage for other types of commodities, e.g. > stocks. > I should use "commodity" everywhere, at least in the shell and in the docs. > > > On Fri, Mar 16, 2018 at 12:59 PM, Martin Michlmayr <[email protected]> wrote: > >> I believe I read that beancount uses "commodity" and "currency" >> interchangeably. >> >> But then I see: >> >> 'COMMODITY_META(str)': Get the metadata dict of the commodity directive >> of the currency. >> >> 'CURRENCY(Amount)': Extract the currency from an Amount. >> >> Why are different terms used? >> >> -- >> Martin Michlmayr >> http://www.cyrius.com/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Beancount" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/beancount/20180316165911.uexuoie2zkyfvq2s%40jirafa.cyrius.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhM7MjE44y998U3hFccOsVMJ__dSSA8AxoZ7_xvWF9tpJQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
