I have a bunch of javafx properties that should be...
# tornadofx
g
I have a bunch of javafx properties that should be read-only externally. Is this the right way to do that? It seems weird that s is val. I'm wondering if the compiler will wind up caching that val after one fetch.
r
It won't, the by keyword delegates the val to the getValue of the property. val does not mean that the value does not change, it means that it cannot be re-assigned.
g
Excellent, thank you!