Open michaellilltokiwa opened 1 year ago
Good suggestion! In the example, I would prefer to do something like
ex : time.durations is
a := (ns 500) + (years 5)
say a
but I think this would be possible with your suggestion.
I think it would be even better if numericy
would extend numeric
, but this might be difficult, so keep this as an idea for later (and until numeric
is stable:-).
I have some difficulties getting used to the name numericy
. How about wrapped_numeric
and then rename as_numeric
/as_numericy
as unwrap
/wrap
?
This would turn out really cool once postfix calls are supported:
ex : time.durations is
a := 500 ns + 5 years
say a
but still have to check how much confusion this would cause in other contexts...
related to #621
Right now it is not directly possible to add two durations. We will also have this problem when we add other units like the SI-units for example. I thought of adding something like this:
in
duration.fz
now we can do this:
@maxteufel @WaelYoussfi @fridis Please share your thoughts on this suggestion. Also I need help with the names...