it would be better to compare `run` and `with`, in...
# announcements
c
it would be better to compare
run
and
with
, in which case
run
can be used like
nullable?.run { ... }
, which runs the block only if receiver is not null, or like
nullable.run { ... }
which always runs the block, but with nullable receiver. if you use
with
, you're pretty much stuck with nullable receiver
👍 2