Skip to content

A Proposal to Define Some Container-Related Terms #1250

@RexJaeschke

Description

@RexJaeschke

To add your input to the discussion of a topic in this issue, do NOT create a new comment; instead, locate the existing topic thread and add your contribution to its end using the “edit” option.

Introduction

The word “collection” is used in the draft-v8 C# spec 90-odd times; however, the spec does not contain a definition for this word as a term.

Although we’ve gotten along without such a definition, collection-related features will be added in V8 and future versions, and one or more definitions might be desirable. Specifically:

  • V8: The Indexer-and-Range feature spec defines the term “indexable sequence” (my own invention, which I propose be renamed as “indexable collection”).
  • V12: Adds support for collection expressions, and inline arrays (which are collections).
  • V13: Replaces “parameter array” with “parameter collection.”

And Bill is aware of other, potential future uses.

I propose that we define the term “collection” and some flavors thereof, and that we use them consistently starting with draft-v8.

Topics

Metadata

Metadata

Assignees

Labels

type: clarityWhile not technically incorrect, the Standard is potentially confusing

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions