https://kotlinlang.org logo
#feed
Title
# feed
g

ghedeon

02/08/2020, 7:12 PM
even years after, the syntax of
companion object
still looks out of place and orthogonal to Kotlin's spirit.
👍 3
m

Mike

02/09/2020, 2:46 AM
Scala's approach is similar, so I suspect that's what the Kotlin devs are 'copying'. Personally, I really like the separation of object functions from class functions, and don't find I need
companion object
much anyway. Either use top-level functions or Extension functions for most things. But everyone has their own tastes, and things they will adapt to...
2 Views