You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that the operator ~ can have value in the context of a project. However, custom operators are a controversial topic, so I wouldn't advise its use in the general case.
But I feel that it could alternatively implemented as a computed property on NSObject, and you'd get to use it the same way than the operator.
The apply function is indeed interesting! If I remember well, I think it's actually part of the standard library in Kotlin 🙂
#45 Getting rid of overabundant [weak self] and guard
Just a little bit another way with the same example
However sometimes you need function to return value and weak will not work. You might want to use unowned:
#07 Implementing the builder pattern with keypaths
Not using keyPath allows to call functions:
It is safe because it nonescaping closure.
The text was updated successfully, but these errors were encountered: