We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think that we could change NSManagedObject extension using generics.
For example:
Now
func createNewEntity(context:) -> NSManagedObject {} ... let pokemon = Pokemon.createNewEntity() as! Pokemon
After
class func createNewEntity <T> (context:) -> T {} ... let pokemon : Pokemon = Pokemon.createNewEntity()
In my opinion is more secure because you receive a compile error if the type is not explicit!
The text was updated successfully, but these errors were encountered:
but still requires a type annotation right?
whats the interop with Obj-C like? id ?
Sorry, something went wrong.
Obj-c with Xcode 7 has Generics, but I have never tried
No branches or pull requests
I think that we could change NSManagedObject extension using generics.
For example:
Now
After
In my opinion is more secure because you receive a compile error if the type is not explicit!
The text was updated successfully, but these errors were encountered: