[rust-dev] std::num::pow() is inadequate / language concepts
jhaberman at gmail.com
Fri Jul 25 10:10:20 PDT 2014
On Fri, Jul 25, 2014 at 10:04 AM, Patrick Walton <pcwalton at mozilla.com> wrote:
> Neither auto-ref or ad-hoc operator overloading
> would let you write a generic function that calls
> `pow` and works optimally with both bigints and
> ints. I think the only thing that would work is
> something like C++ ad-hoc templates, which is
> a road I don't want to go down.
Could you explain what you mean by "ad-hoc templates", and how this
differs from Rust's templates?
More information about the Rust-dev