3 ms·
@T was supposed to be a GC'd type, but ended up being a refcounted type. It was removed before it actually turned into a GC'd type. ~T was Box<T>. However, on
by steveklabnik 7y ago
@T was supposed to be a GC'd type, but ended up being a refcounted type. It was removed before it actually turned into a GC'd type.
~T was Box<T>.
However, one issue here was that they didn't compose in the same way as types today; ~str existed, for example, but was not the exact same as String in terms of memory layout. Conceptually they're the same thing though.