Join GitHub today
Move properties to nonatomic #49
To support my argument of dropping atomicity for properties, this is Mike Ash's thoughts, taken from a blog post on locking and Swift.
let checkingAccount = Account(amount: 100) let savingsAccount = Account(amount: 0)
println("Your total balance is: \(checkingAccount.amount + savingsAccount.amount)")
Add to that the fact that every accessor and setter is essentially running in a recursive blocking lock, which is not cheap computationally. They really should be largely (or wholly) moved to non-atomic, and the entire proxy should be rebuilt with thread safety in mind.