Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add the null-aware assignment operator #10249

Closed
jolleekin opened this issue Apr 1, 2016 · 2 comments
Closed

Proposal: Add the null-aware assignment operator #10249

jolleekin opened this issue Apr 1, 2016 · 2 comments

Comments

@jolleekin
Copy link

It will be very helpful if C# can support the null-aware assignment operator.

// If [x] is null, assign [y] to [x].
x ??= y;

This operator is inspired by Dart

@HaloFour
Copy link

HaloFour commented Apr 1, 2016

Dupe of #9529, #8894, #3366, #205

@gafter
Copy link
Member

gafter commented Mar 24, 2017

Discussion moved to dotnet/csharplang#34.

@gafter gafter closed this as completed Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants