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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -