Add if not null operator: !? #706
Labels
feature
Proposed language feature that solves one or more problems
state-duplicate
This issue or pull request already exists
Simple suggestion, allow the negation of the if null operator:
??
with the following:!?
.This prevents you from running functions that cannot handle null input.
Example:
The current style just has a weird way of writing with the null repetition.
Alternatively we could allow the unary prefix to apply:
!foo ?? foobar(foo)
would also be acceptable.The text was updated successfully, but these errors were encountered: