Details
Description
I propose a new operator ?=
Instead of doing this:
bar = bar ?: new Bar()
assert bar != null
params.foo = params.foo ?: defaultFoo
assert params.foo != null
with the ?= operator I could do this:
bar ?= new Bar()
assert bar != null
params.foo ?= defaultFoo
assert params.foo != null