从
Scala中的编程6.10(页151):
Identifiers in user programs should not contain ‘$’ character,even though it will compile; if they do this might lead to name clashes with identifiers generated by Scala compiler.
我确信这是一个原因,但为什么不阻止在字母数字标识符中使用’$’字符呢?