Scala LanguageWorking with data in immutable style


Remarks

Value and variable names should be in lower camel case

Constant names should be in upper camel case. That is, if the member is final, immutable and it belongs to a package object or an object, it may be considered a constant

Method, Value and variable names should be in lower camel case

Source: http://docs.scala-lang.org/style/naming-conventions.html

This compile:

val (a,b) = (1,2)
// a: Int = 1
// b: Int = 2

but this doesn't:

val (A,B) = (1,2)
// error: not found: value A
// error: not found: value B