dart-lang / dart-lang/language

Operator =?? (opposite to ??=)

Open
#288 2 comments 3 reactions 0 assignees View on GitHub
feature null-aware-expressions
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

I propose to make =?? operator
Expression `a =?? b` works as
```
if (b != null)
a = b;
```
If `??=` exists, why this one doesn't?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.