Re:Fun with Swift
by malisper on Monday January 04, 2016 @01:33PM
(#10837426)
He's not saying that closures over mutable variables is a bad thing in Swift. He is saying it's a bad idea in any language, even though most languages with closures allow it.
[ Parent
| on HN ]
I see how programmers can mistake mutable closure references for immutable, but if we imagine that this confusion is solved somehow (for example, closures copy values by defualt and reference only with a special keyword), how is it bad?