-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
iOS & Objective-C no type detection for Key #15
Comments
I think this will be better! |
Well, the interface is And one more thing, checking parameter's type is a little luxurious for a frequently called interface. |
Agree with @lingol here. interface is specifically mentioning the type of the parameter. To force the user not to send anything else we could use some assertions |
The language of MMKV
Objective-C
The version of MMKV
v1.0.10
The platform of MMKV
iOS
The installation of MMKV
Cocoapods
What's the issue?
I found that all set&get methods call 'key.length' for check key vaild, but the passed key will be crash if it is an id type but not a string.
The text was updated successfully, but these errors were encountered: