We'll probably keep going off-topic indefinitely here (note the title
of this thread...). I just want to set one thing straight, and then
I'll leave the rest of this conversation for later.

> In general we're not supporting (or not *starting* with the notion of
> supporting) any transparent conversions at all. Not even subtyping.
> Particularly not a conversion that involves allocating a wrapper object and
> a vtbl. We don't even auto-box 10 to @int!

Note that no conversion, and thus no implicit conversion, at all
happens in my description. It passes a vtable to the function that is
polymorphic on a typeclass type, doesn't allocate anything. Thus, this
is much more efficient than your wrapper obj example.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to