Skip to content

[Proposal]: Collection Expression Arguments #8887

@CyrusNajmabadi

Description

@CyrusNajmabadi

Collection Expression Arguments

Summary

Introduce a way for users to create collection expressions (e.g. [a, b, c]) while also passing along arguments to the respective creation construction for that collection.

An example strawman syntax for this would be:

List<string> values = [args(capacity: 32); a, b, c];

Design meetings

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions