dotnet / dotnet/csharplang

Champion "Null-coalescing assignments" (16.3, Core 3)

Open
#34 100 comments 178 reactions 1 assignee Assigned to @gafter View on GitHub
Implemented Needs ECMA Spec Proposal champion Smallish Feature
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

Introduces `??=`.

Note: a minor change to `??` is included in this feature as implemented, so that it allows unconstrained type parameter types on the left.

- [X] Proposal added: [proposals/null-coalecing-assignment.md](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/null-coalescing-assignment.md)
- [x] [Discussed in LDM](https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-02-21.md#null-coalescing-assignments-and-awaits)
- [ ] Decision in LDM
- [ ] Finalized (done, rejected, inactive)
- [ ] Spec'ed

LDM history:
- https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-04-15.md (result type)

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.