6 ms·
What do you think of this? https://github.com/eriksencosta/money/blob/enum-percentage-spike/money/src/test/kotlin/com/eriksencosta/money/DesignSpikes.kt#L13 htt
by eriksencosta 2y ago
What do you think of this? https://github.com/eriksencosta/money/blob/enum-percentage-spike/money/src/test/kotlin/com/eriksencosta/money/DesignSpikes.kt#L13 https://github.com/eriksencosta/money/blob/enum-percentage-s...
It is a (quick) spike solution, but I've implemented the currency codes as enums and added support for 20.percent.
Not so sure about supporting 50.btc and 25.3.usd. I need to check if doing so would affect code completion.