3 ms·
> Personally I find ARC really easy to reason about and worth it How do you reason about a closure that captures some stuff and gets passed to a library functi
by fauigerzigerk 5y ago
> Personally I find ARC really easy to reason about and worth it
How do you reason about a closure that captures some stuff and gets passed to a library function? @escaping doesn’t give you enough information to reason about all lifetimes that could possibly matter.
- hmlongco 5y agoUhh... because I can see what was captured? If I'm overly concerned that a given callback might be held somewhere for all time I'll simply capture a weak reference and be done with it.