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

'?=' operator #2706

Closed
moien007 opened this issue Jul 31, 2019 · 1 comment
Closed

'?=' operator #2706

moien007 opened this issue Jul 31, 2019 · 1 comment

Comments

@moien007
Copy link

Here's a an operator suggestion, The ?= operator based on ?? operator.

Explanation:
a = a + b => a += b
a = a - b => a -= b
...
a = a ?? b => a ?= b which equals to if (a == null) a = b

May it find its way to C#?

@mattwar
Copy link
Contributor

mattwar commented Jul 31, 2019

There is already such a feature on the docket for C# 8.0: #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants