Use of All CAPS in Scala Code -
the common practice in java use caps static final variables:
static final int my_constant = 24
i believe common practice in scala val
use:
val myconstant = 24
is there accepted place use caps, in java, in scala?
according the official guidelines: no. in practice all_caps
means "all caps, separated underscores," , scala doesn't want using underscores in names.
generally speaking, scala uses “camelcase” naming conventions. is, each word (except possibly first) delimited capitalizing first letter. underscores (
_
) heavily discouraged have special meaning within scala syntax.
Comments
Post a Comment