Scala:Object-Oriented Meets Functional

Have the best of both worlds. Construct elegant class hierarchies for maximum code reuse and extensibility, implement their behavior using higher-order functions. Or anything in-between.

OO确实是最大化了代码的重用和扩展,函数式编程实现行为又特别爽(不在有for、while、switch了)。

原文地址:https://www.cnblogs.com/happyframework/p/4188477.html