On Fri, Jul 25, 2014 at 10:04 AM, Patrick Walton <pcwal...@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?
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to