- Functional Kotlin
- Mario Arias Rivu Chakraborty
- 125字
- 2021-06-24 19:15:27
Immutability - It's Important
So, we are in the third chapter of, Functional Kotlin. In this chapter, we are going to discuss immutability. Immutability is probably the most important aspect of functional programming; actually, not only in functional programming, but OOP also gives some room to nurture immutability with immutable objects. So, why is it so important? What does it mean? How can we implement immutability in Kotlin? Let's answer these questions in this chapter.
The following are the points we are going to cover in this chapter:
- What is immutability?
- The advantages of immutability
- How to implement immutability in Kotlin?
- Immutability in variables
- val versus var
- val and const val—are they truly immutable?
- Compiler optimization
- Immutable collections
- The disadvantages of immutability
推薦閱讀
- DBA攻堅指南:左手Oracle,右手MySQL
- Kibana Essentials
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Leap Motion Development Essentials
- Ext JS Data-driven Application Design
- TestNG Beginner's Guide
- C++程序設計基礎教程
- Spring+Spring MVC+MyBatis整合開發實戰
- Python忍者秘籍
- MySQL入門很輕松(微課超值版)
- Illustrator CC平面設計實戰從入門到精通(視頻自學全彩版)
- Getting Started with Polymer
- Struts 2.x權威指南
- Unity 2017 Game AI Programming(Third Edition)
- 大學計算機基礎實訓教程