Re:Fixing for Loops in Go 1.22
by smasher164 on Tuesday September 19, 2023 @05:37PM
(#37577127)
> we're still inventing languages where local variables can be mutated
Local mutability is probably one of the most common uses of mutability. A lot of it is using local state to build up a more complicated structure, and then getting rid of that state. Getting rid of that use-case is just giving up performance.
Local mutability is probably one of the most common uses of mutability. A lot of it is using local state to build up a more complicated structure, and then getting rid of that state. Getting rid of that use-case is just giving up performance.