mikehearn
02/01/2021, 11:53 AMmelatonina
02/08/2021, 4:35 AMbind {
a = "total = ${b + c.d} €"
}
and rewrite them as bindings of aProperty
, bProperty
, cProperty
and dProperty
, if a, b, c, and d are Kotlin properties delegated to those JavaFx properties, without the need of changes to JavaFx.mikehearn
02/08/2021, 10:28 AMmikehearn
02/08/2021, 10:29 AMmelatonina
02/08/2021, 10:55 AMc.d
would cause the compiler plugin to generate cProperty.select { it.dProperty }
or even just the equivalent JavaFx select statement, since the types would be already checked at that point. There is no need to re-evaluate anything, outside of what JavaFx already does.
They are two different approaches, each with its merits.mikehearn
02/08/2021, 10:56 AMmikehearn
02/08/2021, 10:56 AMmelatonina
02/08/2021, 11:51 AMmikehearn
02/08/2021, 12:18 PM