When I use a variable starting with caps for pattern matching in Scala, it gives a compile error. This is a style issue, I don't understand why is this a compile error.
The following snippet reports "error: not found: value Name".
val pair = Tuple2(1,"abc")
val (key, Name) = pair
However, the following works:
val pair = Tuple2(1,"abc")
val (key, name) = pair