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
Right now, the DST proposal is still not implemented/decide upon. However, once it gets implemented I'd like to propose the following roadmap:
Implement ability to declare newtypes of at least unsized vectors (syntax just arbitrary):
struct vec<T>[T];
Those types would work the same way as a bare [T] works: They don't have a compile-time known size, and are specially represented by an slice or an owned pointer:
let vec_slice: &'static vec<uint> = &'static vec[1, 2, 3];
let owned_vec: ~vec<i8> = ~vec[4, 5, 6];
Remove str from the compiler and replace with an library type:
struct str[u8];
This would allow to clean up a lot of library types:
struct str_ascii[u8];
struct str_c[u8];
struct str_utf16[u16]; // Servo seems to need utf16
Rewrite string library to share as much code with traits and generics as possibly for those types.
The text was updated successfully, but these errors were encountered:
…ring_to_pedantic, r=flip1995
Move format_push_string to restriction
Fixesrust-lang#9077 (kinda) by moving the lint to the restriction group. As I noted in that issue, I think the suggested change is too much and as the OP of the issue points out, the ramifications of the change are not necessarily easily understood. As such I don't think the lint should be enabled by default.
changelog: [`format_push_string`]: moved to restriction (see rust-lang#9077).
Right now, the DST proposal is still not implemented/decide upon. However, once it gets implemented I'd like to propose the following roadmap:
Implement ability to declare newtypes of at least unsized vectors (syntax just arbitrary):
Those types would work the same way as a bare
[T]
works: They don't have a compile-time known size, and are specially represented by an slice or an owned pointer:Remove
str
from the compiler and replace with an library type:This would allow to clean up a lot of library types:
Rewrite string library to share as much code with traits and generics as possibly for those types.
The text was updated successfully, but these errors were encountered: