-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safety of storing mutable objects in collections? #337
Comments
Something difficult about this is that we want to (unsafely?) allow Maybe we could just allow Or maybe have a kind of "initialization invariant": If you hold a |
Maybe it's actually just insertion that should be blocked on Linking information about plists: |
I've reverted the original solution for this (adding a trait |
I just happened to read this
Which is just... Ugh!
So yeah, we may need to manually define which types are safe to use as hash keys - though it might not be that bad, since you usually just want to use
NSString
orNSNumber
anyways.The text was updated successfully, but these errors were encountered: