Ability to return and throw from ?? expression. #3293
Labels
feature
Proposed language feature that solves one or more problems
state-duplicate
This issue or pull request already exists
I am familiar with Elvis operator
?:
Kotlin. The dart equivalent of this would be??
in most cases. While??
works great, there is no way to return from it or throw in the same line of the expression without writing a bit of boilerplate code.Example:
Dart as of now,
With ability to throw from
??
expressionSame for returning values:
Kotlin version:
The text was updated successfully, but these errors were encountered: