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/
> msgid/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%2BhPxpTC_YqgbnnVvF-Xg-%3D%2BctNffTtRouuytp-ga5_xjtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to