ralf
05/12/2019, 8:27 PMlouiscad
05/12/2019, 8:33 PM@Composable
annotated functions don't have a return type. So a compiler plugin is needed to pass down the tree where the widgets will be added (if they are not already present). This is similar to how kotlinc compiles functions with the suspend
modifier to functions with an extra Continuation
parameter.Marko Mitic
05/12/2019, 8:39 PMfun myWidget() = compose { ...UI...}
romainguy
05/12/2019, 8:40 PMromainguy
05/12/2019, 8:40 PMromainguy
05/12/2019, 8:41 PMromainguy
05/12/2019, 8:41 PMMarko Mitic
05/12/2019, 8:42 PMromainguy
05/12/2019, 8:44 PMralf
05/12/2019, 8:44 PMthemishkun
05/12/2019, 8:44 PMromainguy
05/12/2019, 8:45 PMromainguy
05/12/2019, 8:46 PMralf
05/12/2019, 8:47 PMromainguy
05/12/2019, 8:50 PMelizarov
05/12/2019, 8:50 PMmain() { println(...) }
analogy from presentation a lot. It really makes UI programming more approachable, easier to understand.romainguy
05/12/2019, 8:53 PMromainguy
05/12/2019, 8:53 PMralf
05/12/2019, 8:54 PMFelix
05/12/2019, 9:00 PMUnit
.stkent
05/12/2019, 9:14 PMWe are transitioning from the KTX syntax to using a Kotlin DSL based on intercepted function calls.which seems to conflict with Romain's "you shouldn't think of Compose as a DSL" clarification.
stkent
05/12/2019, 9:15 PMromainguy
05/12/2019, 9:15 PMromainguy
05/12/2019, 9:15 PM