News for hackers. Stuff that matters.
Re:Swift 4.1 Released by tabs_masterrace on Friday March 30, 2018 @04:58AM (#16714711)
ARC an be a real pain with closures though. I'm often discouraged to use them in Swift, because I can't be bothered to figure out if I have all my references correctly set. GC lets you not worry about it. It comes with its own disadvantages, but does it really matter in most cases? Optimizing for productivity seems way more important then pure performance these days.
Re:Swift 4.1 Released by danappelxx on Friday March 30, 2018 @09:49PM (#16721198)
Well, the gotcha's are pretty straight forward - don't capture self. Xcode actually features runtime memory leak detection which can detect this (though I've never seen it actually work...).