Eugen Martynov
07/14/2025, 2:02 PMBrais Gabin
07/14/2025, 2:24 PMEugen Martynov
07/14/2025, 2:36 PMfun x(): Unit
by fun x() {}
but this looks like really subjective and no objective reasonsBrais Gabin
07/14/2025, 2:44 PMBrais Gabin
07/14/2025, 2:44 PMBrais Gabin
07/14/2025, 2:45 PMEugen Martynov
07/14/2025, 2:47 PMfun x() = z()
to fun x() { z() }
. Which is not agreed style and my personal preference. While I should do instead fun x(): Unit = z()
to provide implicit API and keep original author intention.Eugen Martynov
07/14/2025, 2:48 PMEugen Martynov
07/14/2025, 2:49 PMBrais Gabin
07/14/2025, 2:53 PMBrais Gabin
07/14/2025, 2:53 PMEugen Martynov
07/14/2025, 2:53 PM