Levi's Blog

Day: February 17, 2024

Taming State Mutation: Rust’s Ownership vs. FP’s Immutability

Uncontrolled mutation can make it challenging to understand the flow of data and the interactions between different parts of a program. This complexity arises because changes made to the state in one part of your program can have unexpected consequences in other parts. Functional programming addresses this challenge by defaulting to immutability. Functional languages also […]

Back to top