3 ms·
> transferRegularly(amount=10000, period_in_days=30) dollars(10000) is still better than this example, because: 10000 what? Pennies? USD? EUR?
by steelframe 5y ago
> transferRegularly(amount=10000, period_in_days=30)
dollars(10000) is still better than this example, because: 10000 what? Pennies? USD? EUR?
- necovek 5y agoSomeone else caught me out on that too by suggesting making it `amount_in_dollars` elsewhere in the thread ;) Now you can say how there are also AUD, CAD... The point was simply that if units are needed due to lack of specific type being used, it's nicer to have that in the API when language allows it.