dotnet / dotnet/csharplang

[Proposal]: ref readonly method parameters (VS 17.8, .NET 8)

Open
#6,010 1 comment 36 reactions 1 assignee Claimed by @jaredpar View on GitHub
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

# `ref readonly` method parameters

* [x] Proposed
* [x] Prototype: Done
* [x] Implementation: Done
* [ ] Specification: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-12.0/ref-readonly-parameters.md

> **Note**: this proposal is a follow up to numerous conversations over the years about how `in` arguments are implemented in C#, both here on GitHub and on Discord (with folks like @stephentoub, @jaredpar, @tannergooding, @AaronRobinsonMSFT). To give context and cite the last example, see https://github.com/dotnet/runtime/issues/67445. Opening this so we can properly review it and hopefully start making some progress.

See https://github.com/dotnet/csharplang/blob/main/proposals/csharp-12.0/ref-readonly-parameters.md

## Design Meetings

* https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-04-25.md#ref-readonly-method-parameters
* https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-05-09.md#ref-readonly-parameters
* https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-05-11.md#ref-readonly-method-parameters

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.