I’m not sure it’s that much better than `if` but i...
# announcements
c
I’m not sure it’s that much better than
if
but it definitely beats Smalltalk’s
ifTrue
and
ifFalse
c
properties.takeIf(Properties::isNotEmpty)?.run { this.forEach { prop -> ... } }
here
takeIf
and
run
could be merged into something new like
runIf
. Seems legit to me 🙂