官术网_书友最值得收藏!

Best of both worlds

Scala is a mixture of functional and object-oriented worlds. It gives two benefits. First, you can leverage the power of functional constructs: higher-order functions, nested functions, pure functions, and closures. You get to work with more available (and recommended) immutable data structures. Working with immutable code helps in eliminating code that can introduce side effects or state change. This also makes this language suitable for concurrent programming. This is just another advantage Scala provides. Second, you've all the object-oriented goodies available.

You can define traits, mix them in with classes or objects, and achieve inheritance. The creation of objects, defining abstracts, and sub-classing is also possible in Scala.

主站蜘蛛池模板: 扎兰屯市| 永寿县| 河津市| 五大连池市| 滕州市| 阜平县| 伽师县| 宾阳县| 凌源市| 河池市| 娱乐| 常德市| 土默特右旗| 迁安市| 曲麻莱县| 那坡县| 鄂托克旗| 于都县| 陆川县| 波密县| 全椒县| 美姑县| 阳原县| 屯留县| 内丘县| 民和| 集安市| 根河市| 镶黄旗| 武邑县| 邯郸市| 大城县| 屏东市| 青神县| 九龙县| 夏津县| 桓台县| 盐山县| 阿克陶县| 尼玛县| 普宁市|