You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think there's any need to make these 64-bit, or even require that they be 32-bit. It's somewhat surprising how big stuff like Option<()> is at the moment. It's very painful for stuff like SmallIntMap and Deque that use ~[Option<T>], and for implementing set types as wrappers around map types.
For compatibility with C code, a #[discriminant = c_int] attribute can be offered to choose whatever primitive integer type is desired (C++11 has this feature too, as class enum foo: uint8_t)
The text was updated successfully, but these errors were encountered:
I don't think there's any need to make these 64-bit, or even require that they be 32-bit. It's somewhat surprising how big stuff like
Option<()>
is at the moment. It's very painful for stuff likeSmallIntMap
andDeque
that use~[Option<T>]
, and for implementing set types as wrappers around map types.For compatibility with C code, a
#[discriminant = c_int]
attribute can be offered to choose whatever primitive integer type is desired (C++11 has this feature too, asclass enum foo: uint8_t
)The text was updated successfully, but these errors were encountered: