I feel like that trick with overloading `invoke` i...
# getting-started
k
I feel like that trick with overloading
invoke
is too clever. Would be very confusing to newcomers to the code-base if you were doing
Foo()?.bar()
, when
Foo()
is a constructor, which we assume never returns null. I'd rather just use a companion function like
Foo.create()?.bar()
. More explicit
👍 3