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

[Proposal]: Relax requirement that type be enumerable to participate in collection expressions #9009

Open
333fred opened this issue Jan 6, 2025 · 0 comments
Assignees
Milestone

Comments

@333fred
Copy link
Member

333fred commented Jan 6, 2025

Relax requirement that type be enumerable to participate in collection expressions

Summary

It is presently not possible to declare a collection type that doesn't implement some IEnumerable interface.
We should consider allowing types marked with [CollectionBuilder(...)] to not be enumerable (and thus not have an iterator type).

Design meetings

https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-01-31.md#relax-enumerable-requirement-for-collection-expressions

@333fred 333fred added this to the Working Set milestone Jan 6, 2025
@dotnet dotnet locked and limited conversation to collaborators Jan 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants