-
Notifications
You must be signed in to change notification settings - Fork 268
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
Use auto-boxing for primitive initializer injections. #154
Comments
relates to #153 |
I did it. But it's looks like KVC implementation.. but may be more dumb. |
👍 For now, I think its enough to clearly document any short-comings - types that can be injected with properties but not initializers. I don't think your idea was a bad one. There are already some differences between initializer injection and property injection. For example, initializers don't support automatic 'by type' injection - finding the right candidate based on the required type. The runtime doesn't support this. In the case of primitives and rolling our own KVC later - I'm sure that library would be well received by the Objc community. Important There is one problem with your commit:
To test the same functionality:
|
Reopen due to minor issue with Tests vs iOS / OSX |
Fixed by NSRange |
👍 Great work Aleksey! |
No description provided.
The text was updated successfully, but these errors were encountered: