About云-梭伦科技's Archiver
专题
›
Scala语言
› case _:Cat与 case _ =>区别
jixianqiuxue
发表于 2015-4-1 23:55:03
case _:Cat与 case _ =>区别
case _:Cat => "Got a Cat (ignoring the name)"
case _ => "That was something else"
前面一行和后面一行的区别是啥
desehawk
发表于 2015-4-1 23:55:22
Cat类型匹配
页:
[1]
查看完整版本:
case _:Cat与 case _ =>区别