very much dependent on the real context, but I’d c...
# codereview
r
very much dependent on the real context, but I’d consider whether
doAThing
could be an extension method on
foo
and then it’s just a
foo?.doAThing() ?: defaultThing()