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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -