https://kotlinlang.org logo
s

Slackbot

02/22/2023, 12:37 PM
This message was deleted.
a

Adam S

02/22/2023, 1:55 PM
#getting-started would probably be better blob smile In the constructor, there is no
this
. Kotlin is being succinct and deducing that
R
for your logger function is the companion. If we make it more verbose…
Copy code
val something: Logger = logger()
is equivalent to
Copy code
val something: Logger = Companion.logger()
🙏 1
26 Views