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

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.

主站蜘蛛池模板: 乐东| 遂平县| 宾阳县| 岳池县| 清镇市| 固阳县| 汉源县| 六安市| 涪陵区| 平罗县| 娄底市| 乐都县| 英超| 锦屏县| 宁国市| 洪湖市| 林州市| 隆昌县| 南涧| 元氏县| 霞浦县| 卢氏县| 确山县| 九龙县| 宽甸| 吉林省| 石狮市| 厦门市| 太谷县| 鄂伦春自治旗| 兴安县| 马关县| 梨树县| 通道| 平远县| 偏关县| 芷江| 商城县| 塘沽区| 金沙县| 嘉定区|