Skip to content
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

[C# 13]: New Feature - Params collections #40005

Closed
4 of 5 tasks
BillWagner opened this issue Mar 14, 2024 · 1 comment
Closed
4 of 5 tasks

[C# 13]: New Feature - Params collections #40005

BillWagner opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
🏁 Release: .NET 9 Work items for the .NET 9 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-csharp/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest. resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] whats-new/subsvc

Comments

@BillWagner
Copy link
Member

BillWagner commented Mar 14, 2024

Visual Studio release

17.10p3

Link to speclet

Link to Pull request

New behavior

This feature relaxes restrictions on the type of parameters declared with the params modifier. Other collection types are now allowed: Span<T>, ReadOnlySpan<T>, IEnumerable<T>, and others.

Areas affected

  • Add to What's new in C# 13: Add links to updated docs in the What's new in C# 13 article.
  • Update language reference: Detail the areas in the language reference that will be updated for this feature.
  • Update compiler messages: Add new (or updated) pages for new compiler messages. Include related message.
  • Include in Everyday C# section*: Is this new feature included in Everyday C#?
  • Tutorials: Are new tutorials required for this feature? If so, detail below

Language reference tasks

The page on the params keyword should be updated to include other items.

Tutorial tasks

No response

Everyday C# tasks

Add the new params capability when discussing params and the allowed signatures for Main. (Check the spec to see if Main is affected. Either way, we should make clear what the behavior is).


Associated WorkItem - 230100

@BillWagner BillWagner added Pri1 High priority, do before Pri2 and Pri3 dotnet-csharp/svc whats-new/subsvc 🏁 Release: .NET 9 Work items for the .NET 9 release labels Mar 14, 2024
@BillWagner BillWagner self-assigned this Mar 14, 2024
@dotnet-bot dotnet-bot added ⌚ Not Triaged Not triaged labels Mar 14, 2024
@BillWagner BillWagner added the doc-idea Indicates issues that are suggestions for new topics [org][type][category] label Mar 14, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Mar 14, 2024
@BillWagner BillWagner added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Mar 14, 2024
@BillWagner
Copy link
Member Author

I added this to the March sprint. It may not be done this sprint, but if not, it should be done early in April to meet the next public preview.

@sequestor sequestor bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Mar 15, 2024
@BillWagner BillWagner moved this from 🔖 Ready to Slipped in dotnet/docs March 2024 sprint Mar 29, 2024
@BillWagner BillWagner moved this from 🔖 Ready to Slipped in dotnet/docs April 2024 sprint Apr 30, 2024
@BillWagner BillWagner moved this from 🔖 Ready to 🏗 In progress in dotnet/docs May 2024 sprint May 2, 2024
BillWagner added a commit to BillWagner/docs that referenced this issue May 16, 2024
Update descriptions for the `params` modifier to allow collections.

Fixes dotnet#40005
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in dotnet/docs May 2024 sprint May 20, 2024
@dotnet-bot dotnet-bot added the resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 9 Work items for the .NET 9 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-csharp/svc Pri1 High priority, do before Pri2 and Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest. resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] whats-new/subsvc
Projects
Status: Slipped
Status: Slipped
Status: ✅ Done
Development

No branches or pull requests

2 participants