上QQ阅读APP看书,第一时间看更新
Immutable storage
Garbage collectors simplified mutability considerably and, as a consequence, many of these languages don't need a specific modifier for mutability. While this garbage collection mechanism comes at the expense of runtime with frequent cleanups, not having to care about making variables mutable is very convenient. It lets developers focus on the logic they are implementing instead.
So why did Rust (and many functional languages) bring back this concept?