- Functional Kotlin
- Mario Arias Rivu Chakraborty
- 56字
- 2021-06-24 19:15:29
Referential transparency
The concept of referential transparency says that, an expression always evaluates to the same value, irrespective of context or any other variance. To be more specific, you can replace a function with its return value.
Immutability, with help of pure functions, can establish referential transparency. Referential transparency strongly denies the mutable state of data.
推薦閱讀
- Unreal Engine Physics Essentials
- 自己動手實現(xiàn)Lua:虛擬機、編譯器和標準庫
- 青少年軟件編程基礎與實戰(zhàn)(圖形化編程三級)
- 程序員考試案例梳理、真題透解與強化訓練
- Mastering matplotlib
- Practical Windows Forensics
- Swift語言實戰(zhàn)精講
- Learning Concurrent Programming in Scala
- Linux C編程:一站式學習
- Rust游戲開發(fā)實戰(zhàn)
- Cocos2d-x Game Development Blueprints
- Access 2010數(shù)據(jù)庫應用技術實驗指導與習題選解(第2版)
- Learning Nessus for Penetration Testing
- AV1視頻編解碼標準:原理與算法實現(xiàn)
- Neo4j 3.x入門經(jīng)典