LDM notes for August 9, 2023 #7457
Replies: 2 comments 12 replies
-
If it is not already enabled, it would be great if interfaces could also be tagged with the collection builder attribute. |
Beta Was this translation helpful? Give feedback.
-
The current C#12 proposal, as I understand it, is that collection expressions have no natural type. Does that mean that they won't work with Further, since the actual collection can't be observed, the compiler doesn't need to pick or even use a collection type at all - it could optimize foreach (var num in [1, 2, 3])
{
func(num);
} by unrolling it directly into func(1);
func(2);
func(3); Am I right that without a natural type we don't get |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2023/LDM-2023-08-09.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions