Jarek
unread,Jan 3, 2013, 6:16:17 PM1/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
Currently constants in ScalaFX, like Color.LIGHTGREEN, and enums, like
Pos.BASELINE_LEFT, use Java naming convention (mirroring JavaFX) � all
capital letters with (optional) underscore between words.
In Scala constants are named using CamelCase, for instance,
Double.MaxValue instead ofDouble.MAX_VALUE in Java.
Should constants and enums in ScalaFX also use CamelCase convention, for
instance, Color.LightGreen and Pos.BaselineLeft?
I would lean toward Scala naming convention, but that may mean some
significant changes to the code, though thanks to default implicit
conversion between SFX and JFX it may not mean much incompatibility. It
may also go through a deprecation having both for a while
(Color.LIGHTGREEN and Color.LightGreen).
If there is some consensus on one or the other approach, it should be
documented in ScalaFX Wiki, say on page DevelopersGuide, to help keep
source code and API consistent.
Jarek