-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reevaluate syntax for fixed-length vector types #9879
Comments
Nominating. |
Maybe something like |
Perhaps |
Do we want this to match the repeat syntax? I could imagine both let x = [10u]{128};
let x = [10u: 128]; have problems; the first one would make something like |
Not to endorse |
1.0, high (not committing to change it yet, just to discuss it) |
IMO, Rust got it right by putting the inner type of a vector inside rather than before the braces (i.e. Personally I don't have an issue with As for proposals, I really want to avoid overloading |
I think keeping |
I am basically happy with the current syntax, except that I think I'd prefer |
@nikomatsakis But yeah, I don't have any issues with the current syntax. Makes me smile actually (yes, very good reasoning there). We used to have |
It sounds like there's not a lot of momentum to change this, and there aren't a lot of good options. Wontfix? |
Note that with DST we're probably going to need a fixed length string syntax, so this may come up again. |
Nominating to close, assuming we're ok with reusing this syntax for fixed-length strings if we need to. |
I think long-term |
Wontfix. |
|
Fix `#[allow]` for `module_name_repetitions` & `single_component_path_imports` Fixes rust-lang#7511 Fixes rust-lang#8768 Fixes rust-lang#9401 `single_component_path_imports` needed some changes to the lint itself, it now buffers the found single component paths to emit in the equivalent `check_item` changelog: Fix `#[allow(clippy::module_name_repetitions)]` and `#[allow(clippy::single_component_path_imports)]`
let foo: [int, .. N]
? As a type name it's pretty unsightly. Some would like to go back to the drawing board here.The text was updated successfully, but these errors were encountered: