Closed AndroidDeveloperLB closed 1 year ago
to be offered globally
@AndroidDeveloperLB, what you mean?
@Miha-x64 I mean to offer to change to:
fun getSomeString(): String = "someString"
or
fun getSomeString() = "someString"
Of course, this should be optional.
I believe that having explicit types (especially for public declarations) is good.
It's a styling inspection. It's subjective if it is good or not. The IDE already shows the type.
Requested this here too:
https://youtrack.jetbrains.com/issue/KTIJ-22314/Request-offer-styling-intention-of-returning-value-directly-making-the-code-shorter