Closed meijeru closed 4 years ago
Operations on money! values need to be able to take account of the currency feature. Therefore one needs a reflector, call it currency-of. When the currency is indicated on the value, this will yield a word! value, else none.
money!
currency-of
word!
none
currency-of USD$1.07 => USD currency-of $0.00 => none
In the light of the continuing discussion on #68, an alternative for my wish would be an accessor, call it /currency, thus
/currency
a: USD$1.07 a/currency => USD
Can be closed.
Operations on
money!
values need to be able to take account of the currency feature. Therefore one needs a reflector, call itcurrency-of
. When the currency is indicated on the value, this will yield aword!
value, elsenone
.