3 ms·
But what does strings have to do with it? Why can't those expressions be plain Perl, maybe with some overloaded operators? For example, import week, custo
by iso-8859-1 6y ago
But what does strings have to do with it? Why can't those expressions be plain Perl, maybe with some overloaded operators?
For example,
import week, custom, si, type from stdlib.units
weight = 10 * si.kg
speed = 2.5 * (custom("furlong", type.LENGTH) / week)
- p6steve 6y agothis is also important - but imo, and in practice from perl5, the Units library experience is a lot richer if you can do both - especially for entry level programmers such as high school students - more on this to come in v2