Re:Guido on Python
by rakoo on Friday July 31, 2015 @11:38AM
(#9982394)
> Reference counting and caching are probably the only areas where immutability can help for most programs.
There is another use spurred by React: when you have a new state to represent, you have to diff it against current state to know exactly what changed and work only on this diff. "Immutable" structures make this trivial.
There is another use spurred by React: when you have a new state to represent, you have to diff it against current state to know exactly what changed and work only on this diff. "Immutable" structures make this trivial.