Steven Curtis
1 min readMar 5, 2023

--

Thank you for your comment and for sharing your perspective on immutability and mutability in programming. You make a valid point that immutability is not truly immutable, but rather it changes where in the program state can be modified. Additionally, you suggest that the focus should be on the directionality of data delivery and the location of state changes rather than simply whether or not data is immutable.

I agree that the focus should be on designing systems that promote clear data flow and minimize the distance between the user input and the source of state changes. This can help to reduce the complexity of the code and make it easier to reason about.

In many cases, immutability can be a useful tool for achieving this goal by minimizing the number of possible sources of state changes and making it easier to reason about the behavior of the program. However, as you suggest, it's important to keep in mind that immutability is not a panacea and that there may be cases where mutable state is necessary or even preferable.

Overall, your comment highlights the importance of considering the broader context in which programming decisions are made and the need to focus on designing systems that are easy to understand and maintain. Thank you for sharing your insights and contributing to the conversation.

--

--

No responses yet