Skip to content

Instantly share code, notes, and snippets.

View billyohgren's full-sized avatar

Billy Ohgren billyohgren

View GitHub Profile
// JSTN / 10 June 2014
// I really like Swift so far, but I can't help be a little sad that I still find
// myself doing the weakSelf/strongSelf dance to avoid retain cycles.
// For a contrived example, suppose we had a class like this with a queue:
import Foundation
class ParallelMessenger {