hudsonb
04/05/2019, 5:03 PMcompanion object {} in library classes to support extension?Shawn
04/05/2019, 5:05 PMhudsonb
04/05/2019, 5:08 PMPoint and I include companion object {}, a user of the library could define fun Point.Companion.fromJson(json: String) = // ... allowing them to do val p = Point.fromJson(json)Shawn
04/05/2019, 5:09 PMhudsonb
04/05/2019, 5:09 PMhudsonb
04/05/2019, 5:10 PMCasey Brooks
04/05/2019, 5:25 PMhudsonb
04/05/2019, 5:26 PMGarouDan
04/05/2019, 6:00 PMhudsonb
04/05/2019, 6:10 PMGarouDan
04/05/2019, 6:11 PMSiebelsTim
04/05/2019, 6:12 PMhudsonb
04/05/2019, 6:13 PMlouiscad
04/05/2019, 6:55 PMcompanion object without body if there's no declaration after it.ghedeon
04/05/2019, 6:59 PMString implementation in Kotlin it actually contains exactly this companion object {}.hudsonb
04/05/2019, 7:02 PMlouiscad
04/05/2019, 7:45 PM