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了)。
本文共 241 字,大约阅读时间需要 1 分钟。
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了)。
转载地址:http://exofm.baihongyu.com/