dotnet / dotnet/csharplang

[Proposal]: Pattern-based with-expressions

Open
#8,877 0 comments 0 reactions 1 assignee Claimed by @MadsTorgersen View on GitHub
Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

# Pattern-based with-expressions

* Specification: _Not created. See below._
* Discussion: https://github.com/dotnet/csharplang/discussions/8876

## Summary
[summary]: #summary

In C# 9.0, we did `with` on records only, not some generalized pattern-based `with` expression.

See also
- the proposal in https://github.com/dotnet/csharplang/blob/main/proposals/rejected/records.md for one possible approach.
- Discussion of nested use cases in https://github.com/dotnet/csharplang/discussions/77

## Design meetings

https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-09-26.md#construction-improvements

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.