dotnet / dotnet/csharplang

[Proposal]: Inline arrays (VS 17.7, .NET 8)

Open
#7,431 5 comments 0 reactions 1 assignee View on GitHub

@AlekseyTs is already working on this.

Since Aug 8, 2023.

Implemented Needs ECMA Spec Proposal Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

Inline arrays

  • Proposed
  • Prototype: Done
  • Implementation: Done
  • Specification: Not Started

Summary

This feature recognizes the special meaning of the [InlineArray] attribute, allows indexing into such inline array types and enumerating their elements.

See https://github.com/dotnet/csharplang/blob/main/proposals/csharp-12.0/inline-arrays.md

Design meetings

https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-06-17.md#inline-arrays-as-record-structs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.