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 - Overload Resolution Priority #41936

Closed
3 of 5 tasks
BillWagner opened this issue Jul 29, 2024 · 0 comments · Fixed by #42563
Closed
3 of 5 tasks

[C# 13]: New Feature - Overload Resolution Priority #41936

BillWagner opened this issue Jul 29, 2024 · 0 comments · Fixed by #42563
Assignees
Labels
🏁 Release: .NET 9 Work items for the .NET 9 release doc-enhancement Improve the current content [org][type][category] dotnet-csharp/svc in-pr This issue will be closed (fixed) by an active pull request. 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 Jul 29, 2024

Visual Studio release

Other (please put exact version in description textbox)

Link to speclet

Link to Pull request

New behavior

Merged in 17.12p1

This PR specifies an attribute that can raise or lower the relative likelihood that an overload is chosen as "better" than another overload.

It is used later in the overload resolution as an "escape hatch" or "tie breaker" to pick a preferred overload, typically for performance reasons.

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

We don't expect a lot of developers will directly use this feature. The runtime team is leveraging it to make Span based overloads preferred over allocating overloads.

  • Add the attribute to the code generation page on attributes.
  • Update the text on overload resolution to mention this feature.
  • Linke from What's new
  • Update errrors and warnings
  • Publish speclet.

Tutorial tasks

None.

Everyday C# tasks

None.


Associated WorkItem - 310943

@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 Jul 29, 2024
@BillWagner BillWagner self-assigned this Jul 29, 2024
@dotnet-bot dotnet-bot added ⌚ Not Triaged Not triaged labels Jul 29, 2024
@BillWagner BillWagner added Pri1 High priority, do before Pri2 and Pri3 doc-enhancement Improve the current content [org][type][category] and removed Pri1 High priority, do before Pri2 and Pri3 ⌚ Not Triaged Not triaged labels Jul 30, 2024
@BillWagner BillWagner moved this from 🔖 Ready to 🏗 In progress in dotnet/docs August 2024 Sprint Aug 29, 2024
@BillWagner BillWagner moved this from 🔖 Ready to 🏗 In progress in dotnet/docs September 2024 Sprint Sep 3, 2024
@dotnet-policy-service dotnet-policy-service bot added the in-pr This issue will be closed (fixed) by an active pull request. label Sep 10, 2024
@BillWagner BillWagner added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Sep 12, 2024
@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 Sep 13, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in dotnet/docs September 2024 Sprint Sep 13, 2024
@dotnet-bot dotnet-bot added the resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] label Sep 13, 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-enhancement Improve the current content [org][type][category] dotnet-csharp/svc in-pr This issue will be closed (fixed) by an active pull request. 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: 🏗 In progress
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants