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
Currently, we don't annotate any initializers with NS_DESIGNATED_INITIALIZER or NS_UNAVAILABLE. This means that any of our objects can be constructed with plain init, breaking our invariants. This is especially bad in Swift, where if a nonnull property is uninitialized it can lead to undefined behavior.
For example, here's autocomplete recommending to me that I can construct a YLPClient without any tokens:
The text was updated successfully, but these errors were encountered:
Currently, we don't annotate any initializers with
NS_DESIGNATED_INITIALIZER
orNS_UNAVAILABLE
. This means that any of our objects can be constructed with plaininit
, breaking our invariants. This is especially bad in Swift, where if a nonnull property is uninitialized it can lead to undefined behavior.For example, here's autocomplete recommending to me that I can construct a
YLPClient
without any tokens:The text was updated successfully, but these errors were encountered: