JuliaIntervals / IntervalContractors.jl

Interval contractors and inverse (reverse) functions for Julia
Other
10 stars 10 forks source link

Rename reverse functions #41

Open dpsanders opened 4 years ago

dpsanders commented 4 years ago

We could rename the reverse functions to something like

rev(+) instead of plus_rev

dpsanders commented 4 years ago

inv would be another option but then we would be committing type piracy when we defined inv(+).

dpsanders commented 3 years ago

Another option would be a type like Reverse{+}. This is probably the best option.

cc @mewilhel

mewilhel commented 3 years ago

I like the Reverse{+} option. I think it'll make for neater definitions e.g. function Reverse{+}(...) as opposed to function rev(::typeof(+), ...). That said both seem like good options.