Add an operator !??
for when an expression is not null
#4007
Labels
request
Requests to resolve a particular developer problem
state-duplicate
This issue or pull request already exists
I apologize in advance if this issue already exists, I didn't find it.
Currently we have
??
for assigning values when the left operand is null, but I keep finding myself on the case where I need the opposite, to only do something when it's not null. Example:I recognize this is syntactic sugar, low priority, and adds a new operator in the language, but I find this pattern happening so recurrently, I wish it could be simpler.
The text was updated successfully, but these errors were encountered: