3 ms·
Oh, but we can expand on that ... scala> 2.days + 10.minutes res: FiniteDuration = 2890 minutes I just don't get it. So a literal like "0.2f" to denot
by bad_user 13y ago
Oh, but we can expand on that ...
scala> 2.days + 10.minutes
res: FiniteDuration = 2890 minutes
I just don't get it. So a literal like "0.2f" to denote a Float (and not a Long) is acceptable. A literal like "300.5m" to denote a decimal and not a floating-point is acceptable.
But somehow other kinds of literals for other units of measurement are not, because Dear God, magic, magic!!!