Re:Fun with Swift
by DrJokepu on Monday January 04, 2016 @08:32PM
(#10840322)
Cocoa and Cocoa Touch were designed with imperative programming in mind though, so this is what the creators of Swift had to work with. I think the main use case for mutable captured values is mutable self, in particular the following, extremely common pattern:
[ Parent
| on HN ]
There are no comments on this comment yet.