Review request for RT-19228
greg.x.brown at oracle.com
Fri Mar 30 12:51:18 PDT 2012
> I am not a great fan of stuffing customized syntactic sugar inside
> builders. Builders are mostly opaque to tools - and any customized
> syntax supported by builders only usually need hand-crafted hacks on the
> tool side. Such is already the case for Font, Image URL,
> WebView location etc... Everything that is not a regular bean pattern is
> a pain. I much prefer an explicit fx:constant attribute.
I was actually going to post a follow-up saying something similar (the essence being that builders make FXML less self-documenting), but you beat me to it. :-)
I don't have a problem using builders in this capacity when necessary, and it's nice to have as an option - but I agree that adhering to bean patterns is definitely preferable when possible.
More information about the openjfx-dev