There's a lot more to say about pattern matching but that would lead us straight to another Scala feature, case classes, which I think I'll save for another day.
关于模式匹配,还有许多可说的东西,但这些会将我们直接引导至Scala的另一个特性case类,我想将它留到下次再介绍。
It's kind of a stupid lack of feature that this is the case, but notice that here is main, at the top of my file.
这是有点笨的,缺少特征的,就是这种情况,但是注意这里是main函数,在我的文件的顶端。
应用推荐