Hullaballoonatic
11/20/2019, 6:46 PMList(7) { it + 3 }
a top level function instead of an static invoke operator? Is the latter somehow unintended usage of the language, or against standard code style?
static invoke operator is just so much more efficient than constructors, given you can error check prior to instantiation, among many other things. I can see how it can read very alien to those not kotlin-savvy, however.jw
11/20/2019, 6:48 PMHullaballoonatic
11/20/2019, 6:49 PMkarelpeeters
11/20/2019, 7:02 PMilya.gorbunov
11/20/2019, 7:37 PMList
interface doesn't have a companion object and introducing it would be tricky.