String(20) 在斯卡拉?
String(20)
a: String(20) b: String(30) a = b; // throws a compiler exception when no implicit conversion is available b= a; // works just fine
注:不需要命名 String
String
是的,这是可能的,使用教会数字编码。吉姆·麦克比思有一系列与此相关的博客。起点 here ,但继续在网上寻找其他参考资料。他不是唯一一个谈论此事的人,这也不是他唯一的职位。