On a similar note, it might be worthwhile to enabl...
# kotest-contributors
e
On a similar note, it might be worthwhile to enable explicit API?
Of course there's a baeldung article on it.. in case someone hasn't heard of it.
a
I think that the API dump files make explicit API mostly redundant
e
yeah, especially with KLib validation..
I think the main benefit would be forcing us to consider API earlier, when defining types.. not as a byproduct of running the apiDump and seeing what ends up in the dump.
a
However, I wish there was an option to force making expression function return types explicit. It's really helpful to be able to quickly scan the code. Can you tell what
fun Boolean.shouldBetrue() = ...
returns at a quick glance? https://github.com/kotest/kotest/blob/f329f592ce3b285c5d8f1c255098b233e74f477d/kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/booleans/BooleanMatchers.kt#L22-L21
😬 1
e
I see what you mean.. lol.. probably spits the receiver back, but could also be Unit?
a
exactly!