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 -

amazon web services - Installing MobileFirst 7.0 server on AWS -

Non Unique Username with ASP.Net Identity 2.0 -