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了)。

posted on 2014-06-06 15:26  幸福框架  阅读(267)  评论(0编辑  收藏  举报

导航

我要啦免费统计