-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Champion: Stackalloc array initializers (15.7) #1286
Comments
Alternatively I think we can have the same mechanism with Tuple extension indexer I mean if we could have extension indexer we can extend var imitatingarray = (0,1,2,3,4,5,6,7);
imitatingarray[0]; // 0 |
@Thaina The rationale for the proposed design is to match the syntax closely what is already allowed (such as |
In addition to the currently allowed syntax (
stackalloc int[3]
) we should allow stack allocated arrays be created with initialization:Discussed in LDM in Jan 2018 (link to meeting notes TBD)
Prototype dotnet/roslyn#24249
The text was updated successfully, but these errors were encountered: