-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposal champion
Milestone
Description
Better conversion from collection expression
- Proposed
- Prototype: Not Started
- Implementation: Not Started
- Specification: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-13.0/collection-expressions-better-conversion.md
Summary
Updates to the better conversion rules to be more consistent with params, and better handle current ambiguity scenarios. For example, ReadOnlySpan<string> vs ReadOnlySpan<object> can currently cause ambiguities during overload resolution for [""]. This is an issue because .NET 9 is adding such methods to string.Concat, which we need to address in the language.
Design meetings
- Jul 17, 2024: Ambiguity between
ReadOnlySpan<T>overloads - Jul 24, 2024: Narrow fix versus recursive approach
- Aug 19, 2024: Preferring element type
- Aug 21, 2024: Review, prefering span types
- Sep 11, 2024: Review
Metadata
Metadata
Assignees
Labels
Implemented Needs ECMA SpecThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationThis feature has been implemented in C#, but still needs to be merged into the ECMA specificationProposal champion